Saturday, 11 February 2012
Program Of Macro In C
#include<stdio.h>
#include<conio.h>
#define sum(x,y) x+y
main()
{
int a,b,c;
clrscr();
printf("Enter Numbers=");
scanf("%d%d",&a,&b);
c=sum(a,b);
printf(" Answer= %d",c);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment