Examveda

What will be the output of the following C code?
#include <stdio.h>
void f();
int main()
{
    #define foo(x, y) x / y + x
    f();
}
void f()
{
    printf("%d\n", foo(-3, 3));
}

A. -8

B. -4

C. Compile time error

D. Undefined behaviour

Answer: Option B


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function