Home » C Programming » Preprocessors » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    #define fun(p, q) p * q = 101
    int main()
    {
    printf("Interview Mania\n");
    }
    1. Compilation error as lvalue is required for the expression p*q=101
    2. Interview Mania
    3. Preprocessor error as lvalue is required for the expression p*q=101
    4. Runtime error as lvalue is required for the expression p*q=101
    5. None of these
Correct Option: B

Preprocessor just replaces whatever is given compiler then checks for error at the replaced part of the code. Here it is not replaced anywhere.



Your comments will be displayed only after manual approval.