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

-11



Your comments will be displayed only after manual approval.