What will be the output of the program?
#include<stdio.h>
void main()
{
printf(5+"Good Morningn");
}
#include<stdio.h>
void main()
{
printf(5+"Good Morningn");
}
A. Good Morning
B. M
C. Good
D. Morning
E. None of these
Answer: Option D
Solution(By Examveda Team)
printf(5+"Good Morning\n"); It skips the 5 characters and prints the given string.
Hence the output is "Morning".
Related Questions on Arrays and Strings
Join The Discussion