Examveda
Examveda

What will be the output of the program?
#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".


This Question Belongs to C Program >> Arrays And Strings

Join The Discussion

Related Questions on Arrays and Strings