Search This Blog

Tuesday, 11 March 2014

function with #define in C++


#include<iostream.h>
#include<conio.h>
#define Min(a,b)(a<b?a:b)
void main()
{
  int i=20,j=25;
  cout<<"Minimum value is : "<<Min(i,j);
  getch();
}

Output


No comments:

Popular Posts