Answer Posted / shruti
the syntax of malloc is wrong.
in your example it should be written as:
char *p;
p = (char *)malloc(sizeof(char));
| Is This Answer Correct ? | 21 Yes | 1 No |
Post New Answer View All Answers
What is ctrl c called?
What is calloc()?
What is the difference between exit() and _exit() function in c?
What is volatile variable in c with example?
Tell me the use of bit field in c language?
What is the description for syntax errors?
Between macros and functions,which is better to use and why?
What does the message "automatic aggregate intialization is an ansi feature" mean?
please explain every phase in the "SDLC" in the dotnet.
Describe dynamic data structure in c programming language?
Is it acceptable to declare/define a variable in a c header?
What's the best way of making my program efficient?
What is the advantage of an array over individual variables?
Is flag a keyword in c?
What is #line in c?