Vidyalelo
C Programming · Q56

Arrays and Strings

Programming · C Programming · question 56

Q56

What will be the output of the program? #include void main() printf(5+"Good Morningn");

A.
Good Morning
B.
M
C.
Good
D.
Morning
Answer
E.
None of these

Answer: Option D

Solution

Answer: Option D
Solution:

printf(5+"Good Morning\n"); It skips the 5 characters and prints the given string.
Hence the output is "Morning".