+ 1
What is ++b and how it use and how it work
Plzz answer fast
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
0
In which context. Do you mean if b = a number
0
A++ =1
0
A++ = 1 or ++A = 1
0
Thank alot