Vidyalelo
Computer Science · Q794

Linux

Engineering and GATE · Computer Science · question 794

Q794

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

A.
4
B.
-1
C.
undefined
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