Home » C Programming » Preprocessors » Question
  1. What is the output of this C code?
    #include <stdio.h>
    #define calc(n, m) n / m + n
    int main()
    {
    int a = -16, b = 13;
    printf("%d ", calc(a + b, 13));
    printf("%d\n", calc(-13, 13));
    return 0;
    }
    1. Divided by zero exception
    2. -14 divided by zero exception
    3. -14 -18
    4. -18 -14
    5. None of these
Correct Option: D

-18 -14



Your comments will be displayed only after manual approval.