Home / C Programming / C Preprocessor :: Discussion

Discussion :: C Preprocessor

  1. Will the program compile successfully?

     #include
     #define X (4+Y)
     #define Y (X+3) 
    
     int main() 
     {   
         printf("%d\n", 4*X+2);
         return 0;
     } 
    

     

  2. A.

    Yes

    B.

    No

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Reports an error: Undefined symbol 'X'


Be The First To Comment