C
Programming and Technical
Programming
Output
Which header file should be included to use functions like malloc() and calloc()?
Options
1) memory.h
2) stdlib.h
3) string.h
4) dos.h
Read Solution (Total 16)
-
- 2)stdlib.h is a standard C header that declares among other things the malloc(), calloc(), free() functions.
- 9 years agoHelpfull: Yes(5) No(0)
- If you are using gcc compiler then use stdlib for dynamic memory allocation
You can also use #include for dynamic memory allocation,but it isn't a ANSI C standard library ,so it will not work in gcc compiler. If you are using gcc then use stdlib for dynamic memory allocation. - 9 years agoHelpfull: Yes(1) No(0)
- stdlib.h is a standard C header that declares among other things the malloc(), calloc(), free() functions
- 9 years agoHelpfull: Yes(1) No(0)
- If you are using gcc then use stdlib for dynamic memory allocation
You can also use #include for dynamic memory allocation, but it isn't a ANSI C standard library ,so it will not work in gcc compiler. If you are using gcc then use stdlib for dynamic memory allocation - 9 years agoHelpfull: Yes(0) No(0)
- option 3 is the correct ans
- 9 years agoHelpfull: Yes(0) No(1)
- 2) stdlib.h
- 9 years agoHelpfull: Yes(0) No(0)
- stdlib.h coz it is a standard C header that declares among other things the malloc(), calloc(), free() functions.
- 9 years agoHelpfull: Yes(0) No(0)
- Which header file should be included to use functions like malloc() and calloc()?
Options
1) memory.h
2) stdlib.h
3) string.h
4) dos.h - 8 years agoHelpfull: Yes(0) No(0)
- 2 it is standed libarary
- 8 years agoHelpfull: Yes(0) No(0)
- In stdlib.h
- 8 years agoHelpfull: Yes(0) No(0)
- stdlib.h because i has those header files by default
- 7 years agoHelpfull: Yes(0) No(0)
- stdlib.h
because malloc() and calloc() are predefined library functions - 7 years agoHelpfull: Yes(0) No(0)
- 2) stdlib.h is a header file used for malloc() and calloc().
- 7 years agoHelpfull: Yes(0) No(0)
- stdlib.h its a standard library header file for calloc & malloc
- 7 years agoHelpfull: Yes(0) No(0)
- 2. These two functions are available in the standard library.
- 5 years agoHelpfull: Yes(0) No(0)
- 2 is answer
- 4 years agoHelpfull: Yes(0) No(0)
C Other Question