C Programming - Memory Allocation - Discussion

Discussion Forum : Memory Allocation - Point Out Correct Statements (Q.No. 2)
2.
Which of the following statement is correct prototype of the malloc() function in c ?
int* malloc(int);
char* malloc(char);
unsigned int* malloc(unsigned int);
void* malloc(size_t);
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
11 comments Page 2 of 2.

Chandu said:   1 decade ago
By defalut for malloc() function return type is void.


Post your comments here:

Your comments will be displayed after verification.