Examveda

What will be the output of the following C code?
#include <stdio.h>
#define Cprog
int main()
{
    int a = 2;
    #ifdef Cprog
    a = 1;
    printf("%d", Cprog);
}

A. No output on execution

B. Output as 1

C. Output as 2

D. Compile time error

Answer: Option D


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function