

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> int main() { char ch1[] = "HelloInterviewMania!"; char ch2[13]; scanf(ch1, "%s", ch2); printf("%s n", ch2); return 0; } |
A. | HelloInterviewMania |
B. | Nothing |
C. | Undefined behaviour |
D. | Hello |
E. | Compilation Error |
Answer» C. Undefined behaviour | |