Memory Allocation

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

A dos.h

B string.h

C stdlib.h

D memory.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.