Home
Explore
Places
win7
win8
Coding
Wednesday, 3 July 2013
2
#include
<stdio.h>
#define prod(a,b) a*b
int main () {
int x=3,y=4,z;
z=prod(3+2,y-1);
printf(":%d",z);
}
Solution: 10...but not 15,bcoz compiler'll take it as 3+2*4-1 = 10 but not same as (3+2)*(4-1)
2
2013-07-03T02:26:00-07:00
cvs