Sail E0 Webinar
Question

If malloc() successfully allocates memory it returns the number of bytes it has allocated.


Options:
A .  True
B .  False
Answer: Option B

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. 

Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers