The function malloc() returns:
2025
The function malloc() returns:
Answer: C. void * — The C library function malloc returns a pointer of type void * that can be converted to the required object pointer type.
- A.
int *
- B.
char *
- C.
void *
- D.
Nothing
Attempted by 331 students.
Show answer & explanation
Correct answer: C
The C library function malloc returns a pointer of type void * that can be converted to the required object pointer type.
Loading lesson…