Answer Posted / ravi chandra
malloc function is used to allocate some space in memory for
the current program that we are running.
malloc() function actually return s the value of the address
of the memory in the memory segment
c=malloc();
it gives the address to the variable c.
h=malloc(sizeof(struct node));
it returns the address of structure for the variable h;
some h=1000; (address value)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
When should I declare a function?
What are local static variables?
Does c have circular shift operators?
Explain is it valid to address one element beyond the end of an array?
Ow can I insert or delete a line (or record) in the middle of a file?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is structure pointer in c?
Why we not create function inside function.
What is unsigned int in c?
Explain what is the heap?
How can you return multiple values from a function?
Differentiate between the = symbol and == symbol?
Explain how can I convert a number to a string?
The file stdio.h, what does it contain?
Explain the difference between strcpy() and memcpy() function?