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
I need previous papers of CSC.......plz help out by posting them.......
In C programming, what command or code can be used to determine if a number of odd or even?
explain what are actual arguments?
What are enums in c?
What is keyword in c?
What is difference between Structure and Unions?
What is getch?
What is void main ()?
What is the difference between c and python?
How can I copy just a portion of a string?
What is the size of enum in c?
What are pointers? What are stacks and queues?
What are the advantages of using new operator as compared to the function malloc ()?
hi send me sample aptitude papers of cts?
What is a null string in c?