In C, malloc() returns a pointer of type:
Show answerHide answer
Correct answer: (C) void *
Explanation
It returns a generic void pointer (or NULL on failure).
Correct answer: (C) void *
Explanation
It returns a generic void pointer (or NULL on failure).
This is question 134 of DSSSB TGT Computer Science Full Mock Test 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.