Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
#define hello( n ) printf( "a" #n "= %d", a##n )
int a3=3;
int main()
{
    #ifdef a3
       hello(3);
   #else
       printf("sorry");
   #endif
}

A. a3=3

B. error

C. a=3

D. sorry

Answer: Option D


This Question Belongs to C Program >> C Preprocessor

Join The Discussion

Related Questions on C Preprocessor