What is the return type of malloc() or calloc()
(A) void *
(B) Pointer of allocated memory type
(C) void **
(D) int *
Explanation: malloc() and calloc() return void *.
We may get warning in C if we don’t type cast the return type to appropriate pointer.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.