Memory Allocation

Q1:
malloc() returns a float pointer if memory is allocated for storing float's and a double pointer if memory is allocated for storing double's.

A True

B False

ANS:A - True

Return type depend on typecast like p = (int*)malloc(90).

It will return integer type pointer.  



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.