C Programming - Memory Allocation - Discussion

Discussion Forum : Memory Allocation - True / False Questions (Q.No. 1)
1.
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.
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
16 comments Page 2 of 2.

Aniket said:   1 decade ago
malloc always return void pointer
prototype of malloc is (void*)malloc(size_t);
(1)

Santosh said:   1 decade ago
Thanks raj.

Panchanan rauta said:   1 decade ago
When a pointer success fully initialize it return void pointer.

Mohini said:   1 decade ago
Thanks raj, viraj.

Raj said:   1 decade ago
malloc() and calloc() return void pointer for using a particular data type we made explicite type casting.

Viraj said:   1 decade ago
Void pointer is returned.


Post your comments here:

Your comments will be displayed after verification.