Home / C Programming / C Preprocessor :: Discussion

Discussion :: C Preprocessor

  1. What will be the output of the program?

     #include
     #define MESS junk 
    
     int main() 
     {   
         printf("MESS\n");   
         return 0;
     } 
    

  2. A.

    junk

    B.

    MESS

    C.

    Error

    D.

    Nothing will print

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment