Vidyalelo
C Programming · Q71

Pointer

Programming · C Programming · question 71

Q71

What will be the output of the following C code? #include int main() int i = 10; void *p = &i; printf("%d ", (int)*p); return 0;

A.
Compile time error
Answer
B.
Segmentation fault/runtime crash
C.
10
D.
Undefined behaviour

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board