/*WAP to use Macro expansion Logical operator*/
#include<stdio.h>
#include<conio.h>
#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" ) ;
getch();
}
No comments:
Post a Comment