What is output of given program? (Output with explanation) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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; }

27th Oct 2018, 9:27 AM
Shubham Gupta
Shubham Gupta - avatar
2 Answers
+ 1
(4-1)*(4-1)=3*3=9
27th Oct 2018, 10:01 AM
s l
0
square (4-1) = square (3) = 3*3 = 9
27th Oct 2018, 9:54 AM
s l