C Program to Find Maximum of Two Number using Macro

 

#include<stdio.h>
#include<conio.h>
#define BEGIN {
#define End
}
#define BIG(a,b) ((a>b) ? a:b)
#define WAIT getch();
#define WAITMSG "\n Press any key to continue..."
main()
BEGIN
int x, y;
clrscr();
printf("\Enter Two Numbers: ");
scanf("%d%d", &x, &y);
printf("\n The Maximum of Two Number is %d", BIG(x,y));
print("\n %s", WAITMSG);
WAIT
END

 

Output:
Enter Two Numbers: 6 5
The Maximum of Two Numbers is 6
Press any key to continue…