

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> void main() { char *ptr = calloc(200, 2); ptr = "Interview Mania"; printf("%s n", ptr); } |
A. | Interview Mania |
B. | Compilation Error |
C. | Garbage |
D. | Segmentation fault |
E. | None of these |
Answer» B. Compilation Error | |