Examveda

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

A. -8 -4

B. -4 divided by zero exception

C. -4 -4

D. Divided by zero exception

Answer: Option A


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function