what does" cout <<++y " mean?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what does" cout <<++y " mean??

28th Sep 2016, 9:41 PM
Xara
Xara - avatar
3 Answers
+ 3
This will add 1 to y and then print the result to the output (screen)
29th Sep 2016, 1:46 AM
Ryne
Ryne - avatar
+ 1
Adds one before doing anything else. y++ adds one after that. For example couting it.
28th Sep 2016, 10:41 PM
Yo Bobby
Yo Bobby - avatar
0
i think that the same of y++ (y++=y+1)
28th Sep 2016, 10:13 PM
David Viadas
David Viadas - avatar