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
What are volatile variables in c?
What are loops in c?
Differentiate between a for loop and a while loop? What are it uses?
How do c compilers work?
Can I initialize unions?
What are the advantages of union?
How many parameters should a function have?
How do you determine a file’s attributes?
What do you mean by Recursion Function?
How can you convert integers to binary or hexadecimal?
what is the significance of static storage class specifier?
What is hashing in c?
What are the data types present in c?
What does %p mean?
What is storage class?