C Pointers Question:
Download Questions PDF

What is (void*)0?
A. Representation of NULL pointer
B. Representation of void pointer
C. Error
D. None of above

Answers:

Answer #1
Option A
(Representation of NULL pointer)

Answer #2
C. Error

Download C Pointers Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me can the size of an array be declared at runtime?Can you combine the following two statements into one?
char *p;
p = (char*) malloc(100);

A. char p = *malloc(100);
B. char *p = (char) malloc(100);
C. char *p = (char*)malloc(100);
D. char *p = (char *)(malloc*)(100);