Vidyalelo
Computer Science · Q985

Linux

Engineering and GATE · Computer Science · question 985

Q985

What is the output of this program? #include #include int main() int *ptr; *ptr = 10; *ptr = 20; printf("%d ",*ptr); return 0;

A.
10
B.
20
C.
segmentation fault
Answer
D.
none of the mentioned

Answer: Option C

Solution

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