Please explain in detail prefix and postfix | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Please explain in detail prefix and postfix

23rd May 2017, 4:02 PM
Jai Garg
Jai Garg - avatar
2 Respuestas
23rd May 2017, 5:02 PM
Gami
Gami - avatar
+ 1
prefix / postfix: pre.... means before post... means after for example (underscore is used as pre/post fix): ___WordWithPrefix WordWithPostFix___ in programming you often touch these description with the increment/decrement function for an integer int i = 0; ++i => Prefix increment i++ => Postfix increment The first one is incremente before any other action with this variable. The second one will be incremented after any action with this variable
23rd May 2017, 4:29 PM
nouseforname
nouseforname - avatar