AD1

Tuesday, 10 January 2017

What will be the output of the following program


#include "stdio.h"
#define PRODUCT(x) (x*x)
int main( )
{
int i=3;
int j=0;
int k=0;
j=PRODUCT(i++) ;
k=PRODUCT(++i) ;
printf("j=%d\nk=%d",j,k) ;
return 0;
}
view raw pre.c hosted with ❤ by GitHub

j=12
k=49

No comments:

Post a Comment