Vidyalelo
Computer Science · Q982

Linux

Engineering and GATE · Computer Science · question 982

Q982

What is the output of this program? #include #include int main() char *ptr; free(ptr); return 0

A.
this program will print nothing after execution
B.
segmentation fault
C.
Aborted (core dumped)
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