+ 1
What is output of given program? (Output with explanation)
#include<stdio.h> #define square(x) x*x int main() { printf("%d",square(4-1)); return 0; }
2 Answers
+ 1
(4-1)*(4-1)=3*3=9
0
square (4-1) = square (3) = 3*3 = 9
#include<stdio.h> #define square(x) x*x int main() { printf("%d",square(4-1)); return 0; }