Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
#define MIN 0
#if defined(MIN) + defined(MAX)
#define MAX 10
#endif
int main()
{
    printf("%d %d\n", MAX, MIN);
    return 0;
}

A. 10 0

B. Compile time error

C. Undefined behaviour

D. Somegarbagevalue 0

Answer: Option A


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function