MCQs
Total Questions : 10
Answer: Option A. -> Yes
Using free()
Using free()
Answer: Option B. -> No
Answer: Option A. -> Yes
Use realloc(variable_name, value);
Use realloc(variable_name, value);
Answer: Option B. -> False
Syntax: void *malloc(size_t size);
The malloc() function shall allocate unused space for an object whose size in bytes is specified by size and whose value is unspecified.
The order and contiguity of storage allocated by successive calls to malloc() is unspecified.
Syntax: void *malloc(size_t size);
The malloc() function shall allocate unused space for an object whose size in bytes is specified by size and whose value is unspecified.
The order and contiguity of storage allocated by successive calls to malloc() is unspecified.
Answer: Option B. -> False
Answer: Option A. -> True
Answer: Option A. -> True
Answer: Option D. -> void* malloc(size_t);
Answer: Option B. -> free(p->s); , free(p);
Answer: Option D. -> p = (int*) malloc(3*4*sizeof(int));