+ 6
Please make me understand how this output came!!!😇😇😇😇
OUTPUT IS 666 But what is the reason behind this output ? https://code.sololearn.com/czJtj2k08Irj/?ref=app
14 Answers
+ 21
a very interesting output
@ Gordie, thank you for your links 👍😉
+ 7
Remember ++a increment the value by one. So, when the compiler came to 6th line, it first incremented and then, printed "666".
+ 5
But at first, it is 'a' only then how 6 came there ?
+ 5
Yes, in CodeBlock the output was 566 but in SoloLearn the output is 666
+ 4
@Adarsh would you help me ?
+ 2
the Devil is in the details.
+ 1
No, C is not ugly @Mark_Propper.
It's quite interesting
0
Where is the Devil ?
0
@Shivam You uncovered them.
That it seems the program running the code substituted a++ for all instances of a.
0
C is ugly.