Why b is 6 in this question ❓ | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 3

Why b is 6 in this question ❓

please explain.. https://code.sololearn.com/c4MVoNASn1so/?ref=app

6th Jun 2022, 12:51 AM
Rajeev Sharma
Rajeev Sharma - avatar
1 ответ
+ 2
a++ return 2 (but the value of a is 3 and ++a return 4 ( the value of a is 4) :: 2+4=6
6th Jun 2022, 4:59 AM
Mihir Lalwani
Mihir Lalwani - avatar