C Programming - Memory Allocation - Discussion
Discussion Forum : Memory Allocation - General Questions (Q.No. 1)
1.
Which header file should be included to use functions like malloc() and calloc()?
Discussion:
37 comments Page 1 of 4.
Vicky Karn said:
8 years ago
malloc(), calloc(), realloc() n free(), all are defined in stdlib.h as well as alloc.h
We can include anyone.
Regarding option, stdlib.h is the answer.
We can include anyone.
Regarding option, stdlib.h is the answer.
(1)
Arathy s v said:
10 years ago
How malloc and calloc stored in heap section?
Ganesh said:
1 decade ago
What is mean by malloc, calloc and realloc explain with simple example?
Kumar mani said:
1 decade ago
calloc() is better than malloc().
Anjireddy said:
1 decade ago
calloc(), malloc(), realloc(), free() are the functions for used for dynamic allocation of memory. So, They are predefined functions we can use them by including stdlib.h.
Vinutha said:
1 decade ago
What is free ();?
Ashu said:
1 decade ago
How calloc() is better than malloc? Explain with a example?
Bittubohemia said:
1 decade ago
How memory can be allocate in android? Can anyone explain?
Akash patel said:
1 decade ago
How we will decide which one is better calloc or malloc during memory allocation?
Yogeshkumar said:
1 decade ago
stdlib.h is the header file which contain predefine prototype for malloc() & calloc().
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers