Vidyalelo
Computer Science · Q194

Linux

Engineering and GATE · Computer Science · question 194

Q194

What is the output of this program? #include #include #include int main() int ptr; ptr = (int)malloc(sizeof(int)*10); return 0;

A.
syntax error
B.
segmentaion fault
C.
run time error
D.
none of the mentioned
Answer

Answer: Option D

Solution

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