Question 134

In C, malloc() returns a pointer of type:

  1. Aint *
  2. BNULL only
  3. Cvoid *
  4. Dchar *
Show answerHide answer

Correct answer: (C) void *

Explanation

It returns a generic void pointer (or NULL on failure).

From DSSSB TGT Computer Science Full Mock Test 5

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.