Output of C++ code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Output of C++ code

Can someone explain this C++ code? https://code.sololearn.com/cmeY8bzKwWHs/#cpp

14th Oct 2020, 4:48 PM
Edward Finkelstein
Edward Finkelstein - avatar
3 Answers
+ 1
It's the behaviour of comma operator. http://www.c4learn.com/c-programming/c-comma-operator/
14th Oct 2020, 5:40 PM
Ipang
+ 1
thank you blackwinter!
14th Oct 2020, 6:22 PM
Edward Finkelstein
Edward Finkelstein - avatar
0
It is just a bug in c++
15th Oct 2020, 4:00 AM
Aditya rout
Aditya rout - avatar