Sail E0 Webinar
Question


What will be the output of the program?


#include<stdio.h>
#define MESS junk
int main()
{
printf("MESS\n");
return 0;
}
Options:
A .  junk
B .  MESS
C .  Error
D .  Nothing will print
Answer: Option B

printf("MESS`setminus`n"); It prints the text "MESS". There is no macro calling inside the printf 

statement occured.




Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers