Sail E0 Webinar
Question


What will be the output of the program ?


#include<stdio.h>
int main()
{
printf(5+"Good Morning\n");
return 0;
}
Options:
A .  Good Morning
B .  Good
C .  M
D .  Morning
Answer: Option D

printf(5+"Good Morning`setminus`n"); It skips the 5 characters and prints the given string.

Hence the output is "Morning"



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers