I came across a interview question which reads as follows:
"Write a simple C/C++ Macro to find maximum of two numbers without using std library or ternary operator".
I need your help in solving this. I know this is trivial but I couldn't find it. So, posting it here.
#include<iostream>
#define max(x,y) /*LOGIC HERE*/
using namespace std;
void main()
{
int a = 98453;
int b = 66394;
cout<<max(a,b);
}