this is the one program, sir i want the output for this:
include
include
define SQUARE(x) x*x
int main() {
int i = 2;
int j= SQUARE(i);
printf("The value of j is: %d\n", j);
getch();
return 0;
}
what is the output?
Hi Friend,
Output will be 4.
Macros are the identifiers that represent statements or expressions. The code define a macro i.e SQUARE(x) x*x. It will determine the square of the given number.
Thanks
Ads