Why are we use postfix and prefix | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Why are we use postfix and prefix

14th Jun 2018, 9:27 AM
Archana Berad
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
14th Jun 2018, 9:34 AM
kev_coding
kev_coding - avatar
+ 1
ty
14th Jun 2018, 9:47 AM
Archana Berad