+ 1
I m Confused totally .....
#define sqr(x) x*x int main() { printf("%d",sqr(3+1)); } And the output is 7.....But,How 🤔
7 Respuestas
+ 11
Yes, better define it with brackets to cover all cases:
#define sqr(x) ((x)*(x))
See this detailed description for more information:
https://code.sololearn.com/c80ech3GBNvc/?ref=app
+ 2
Use printf("%d" , sqr((3+1)))
Or
#define sqr(x) (x)*(x)
+ 2
Just coded it. This will be a clear example feel free to cheak.
https://code.sololearn.com/cpG705GY10iq/?ref=app
0
I m Confused totally .....
#define sqr(x) x*x
int main()
{
printf("%d",sqr(3+1));
}
And the output is 7.....But,How 🤔
0
ثيتلذبعغاتقغشقلتسسفغسفيفعيغهيفعيفانمتذيفتبغنهيفهانيفعيفعينالتسساتيفسغانغيسانبفعسغبنغبغبغسلتتلطللتتييطثقتيققفسقسفلنايفعفغ تختبغهبغهبغهبسفعخغهبغهبغغبههغبغنبفعثقسيفبغبهبغه