C Program for conditional compilation directives as to weather the identifier is defined or not

#include”stdio.h”
#include”conio.h”
#define E =
void main()
{
int a, b, c, d;
clrscr();
#ifdef E
{
a E 2;
b E 3;
printf(“A = %d & B = %d”,a,b);
}
#else
{
c=2;
d=3;
printf(“C = %d & D = %d”,c,d);
}
#endif
getche();
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s