Wednesday 19 March 2014

C Program for Macro expansion

/* Macro expansion */
#define AND &&
#define OR  ||
main( )
{
int  f = 1, x = 4, y = 90 ;
if ( ( f < 5 ) AND ( x <= 20 OR y <= 45 ) )
printf ( "\nYour PC will always work fine..." ) ;
else
printf ( "\nIn front of the maintenance man" ) ;
}

No comments:

Post a Comment