What is Dynamic memory allocation in C? Name the dynamic allocation functions.



What is Dynamic memory allocation in C? Name the dynamic allocation functions...

Answer / hrpynux@gmail.com

To allocate memory dynamically, library functions are malloc() , calloc() , realloc() and free() are used. ... These functions are defined in the <stdlib. h> header file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

FIND THE OUTPUT IF THE INPUT IS 5 5.75 void main() { int i=1; float f=2.25; scanf("%d%f",&i,&f); printf("%d %f",,i,f); } ANSWER IS 5 AND 2.25 WHY?

4 Answers   Wipro,


int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output?

14 Answers   Verifone,


Why is main function so important?

0 Answers  


write a program that uses point of sale system. which are mainly used by retail markets, where the is a database inventory list, a slip should be printed for the customer. manage should be able to access what has been sold and what is left from stock?

1 Answers  


What are the different data types in C?

0 Answers  






What is a 'null pointer assignment' error?

0 Answers  


What are register variables? What are the advantage of using register variables?

0 Answers   TISL,


C program code int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

6 Answers   TCS, Wipro,


What is character constants?

0 Answers  


Explain how can I right-justify a string?

0 Answers  


What will be printed as the result of the operation below: #include<..> int x; int modifyvalue() { return(x+=10); } int changevalue(int x) { return(x+=1); } void main() { int x=10; x++; changevalue(x); x++; modifyvalue(); printf("First output:%d\n",x); x++; changevalue(x); printf("Second output:%d\n",x); modifyvalue(); printf("Third output:%d\n",x); }

2 Answers  


how to find out the biggest element (or any other operation) in an array which is dynamic. User need not to mention the array size while executing.

3 Answers  


Categories