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
Describe the modifier in c?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
Is c still relevant?
What is function and its example?
What is typedf?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is strcmp in c?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What are void pointers in c?
How many levels of pointers have?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is register variable in c language?
Which function in C can be used to append a string to another string?
Combinations of fibanocci prime series
Differentiate between the expression “++a” and “a++”?