Question: 8. What does the function malloc() return when it cannot allocate the requested memory? It returns a NULL pointer o It returns -1 O It

 8. What does the function malloc() return when it cannot allocate

8. What does the function malloc() return when it cannot allocate the requested memory? It returns a NULL pointer o It returns -1 O It raises an exception. It returns a pointer to a smaller than requested block of memory What could be the reason for the error

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!