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 valid operations on pointers?
What is #include called?
What are the string functions? List some string functions available in c.
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
what are bit fields? What is the use of bit fields in a structure declaration?
What is define directive?
Explain what does the format %10.2 mean when included in a printf statement?
What is define c?
Is c procedural or functional?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Explain which function in c can be used to append a string to another string?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Why does everyone say not to use scanf? What should I use instead?