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 is the method to save data in stack data structure type?
why return type of main is not necessary in linux
List out few of the applications that make use of Multilinked Structures?
What is the difference between new and malloc functions?
Explain how does flowchart help in writing a program?
How can I get random integers in a certain range?
What is break in c?
What is the concatenation operator?
What is the -> in c?
simple program of graphics and their output display
How can I determine whether a machines byte order is big-endian or little-endian?
Explain what is the difference between functions getch() and getche()?
What is string concatenation in c?
how to capitalise first letter of each word in a given string?
What is console in c language?