P211. WAP to design macro for multiplication of 2 numbers.
#include<stdio.h>
int
mul(int i,int j)
{
return i*j;
}
#define
MUL(i,j) i*j
void
main()
{
int a=2,b=3;
printf("%d\n",mul(a+2,b+1));
printf("%d\n",MUL(a+2,b+1));
}
Comments
Post a Comment