

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code? #include <stdio.h> int main() { char *ptr[1] = {"Manjesh Ojha"}; printf("%s", (ptr)[0]); return 0; } |
A. | Garbage value |
B. | Compilation Error |
C. | Manjesh Ojha |
D. | Runtime Error |
E. | None of these |
Answer» D. Runtime Error | |