New course! Every coder should learn Generative AI!
Try a free lesson0
Why we got -3 in it please explain this code
1 Answer
+ 1
a = -5
a++ is -5 and a = -4
++a is -3 and a = -3
k = (-4, -3) = -3
https://www.tutorialspoint.com/cplusplus/cpp_increment_decrement_operators.htm