Home » C Programming » Preprocessors » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    #define calc(p, q) p / q + p
    int main()
    {
    int a = -10, b = 5;
    printf("%d\n", calc(a + b, 5));
    return 0;
    }
    1. -10
    2. -14
    3. 5
    4. Compilation Error
    5. None of these
Correct Option: B

-14



Your comments will be displayed only after manual approval.