incompatible declaration in built in function malloc and incompatible types in assignment error in

Posted by mekasperasky on Stack Overflow See other posts from Stack Overflow or by mekasperasky
Published on 2010-04-18T18:04:19Z Indexed on 2010/04/18 18:13 UTC
Read the original article Hit count: 193

Filed under:

char char* c[30]; c = (char*) malloc(30*sizeof(char) );

How does this give an incompatible declaration in built in function warning and and incompatible types in assignment error in the line where i have declared malloc . According to the syntax of malloc , i shouldnt have any error

© Stack Overflow or respective owner

Related posts about c