There are times when it's necessary to have a pointer that doesn't point to anything. The macro NULL, defined in <stddef.h>, has a value that's guaranteed to be different from any valid pointer. NULL is a literal zero, possibly cast to void* or char*. Some people, notably C++ programmers, prefer to use 0 rather than NULL.<stddef.h>
A void pointer is a C convention for "a raw address." The compiler has no idea what type of object a void pointer "really points to." If you write
int *ip;
ip points to an int. If you write
void *p;
p doesn't point to a void!
3. The operator used to get value at address stored in a pointer variable is
A. *
B. &
C. &&
D. ||
Option A
(*)
Option C
(A variable that stores address of other variable)
Option B
*(*(*(*(a+i)+j)+k)+l)
Option A
(near=2 far=4 huge=4)
Option C
(stdio.h and stddef.h)
Option C
(char *p = (char*)malloc(100);)
Option A
(Representation of NULL pointer)