Memory Allocation

Q1:
Which header file should be included to use functions like malloc() and calloc()?

A memory.h

B stdlib.h

C string.h

D dos.h

ANS:A - memory.h

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.  



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.