Why b is 6 in this question ā“ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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