Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 1
Why are we use postfix and prefix
2 Respostas
+ 5
Archana Berad TheĀ prefixĀ increment operator adds one to its operand. This incremented value is used in the expression to get the result of the expression.
TheĀ postfixĀ operator decrement by one and the decremented result is used in the expression to get the value of the expression.
So you can see there's big difference between both still most of beginners get confuse between
+ 1
ty