+ 1

What is ++b and how it use and how it work

Plzz answer fast

10th Oct 2019, 8:16 AM
Muhammad Junaid
Muhammad Junaid - avatar
5 Answers
+ 1
It's called prefix and postfix. When the operators come before the variable it's prefix and if it comes after the variable it's postfix. Prefix makes the change of the value before using it. Postfix makes the change of the value after using it. Example: a = 5 b = 4 a++ + b = 9 but: ++a + b = 10
10th Oct 2019, 8:27 AM
Eliya Ben Baruch
Eliya Ben Baruch - avatar
0
In which context. Do you mean if b = a number
10th Oct 2019, 8:26 AM
Nico Ruder
Nico Ruder - avatar
0
A++ =1
10th Oct 2019, 9:08 AM
Muhammad Junaid
Muhammad Junaid - avatar
0
A++ = 1 or ++A = 1
10th Oct 2019, 9:09 AM
Muhammad Junaid
Muhammad Junaid - avatar
0
Thank alot
16th Oct 2019, 10:31 AM
Muhammad Junaid
Muhammad Junaid - avatar