C Preprocessor

Q1: What will be the output of the program?
#include<stdio.h>
#define MESS junk

int main()
{
    printf('MESS\n');
    return 0;
}

A Nothing will print

B MESS

C Error

D junk

ANS:A - junk

printf('MESS\n'); It prints the text 'MESS'. There is no macro calling inside the printf statement occured.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.