topic/Memory Allocation
Start Test
Question No
Title
Type
Marks
582.
Which header file should be included to use functions likemalloc()andcalloc()?
MCQ
5
583.
What function should be used to free the memory allocated bycalloc()?
MCQ
5
584.
How will you free the memory allocated by the following program?#include<stdio.h> #include<stdlib.h> #define MAXROW 3 #define MAXCOL 4 int main() { int **p, i, j; p = (int **) malloc(MAXROW * sizeof(int*)); return 0; }
MCQ
5
585.
Specify the 2 library functions to dynamically allocate memory?
MCQ
5