Hi after passing the answer here
1 : Am I doing the malloc result? I realized that one of the reasons why we donβt throw malloc is because
casting malloc excessively
But what I'm still trying to figure out is a warning that will be suppressed when we press the malloc function
I also read this answer, but I have doubtful doubts
#include<stdio.h> main() { int *a=malloc(20); }
I understood the point in the answer that the compiler would think that malloc returns int, while we try to give this value int *, which will give us an error, cannot convert from int * to int or something like this, except for the main question
Will the compiler in the absence of stdlib.h consider malloc as a user-defined function and will not look for its declaration, and this will give some error related to the absence of delcaration / defination
user4418808
source share