Write a program of macro


 

/* Write a program of macro.*/

#include<iostream.h>

#include<conio.h>

#define sum(a,b)(a+b)

void main()

{

int c;

clrscr();

c=sum(5,2);

cout<<“c=”<<c<<endl;

getch();

}

output:  c=7

Related Posts

Comments are closed.