what is x++ and a+ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is x++ and a+

what is x++ and a+

14th Sep 2016, 2:30 AM
eunho lee
eunho lee - avatar
4 Answers
+ 6
x++ is equivalent to x+1. a+ is the grade you would not get in a programming course.
14th Sep 2016, 3:29 AM
nick
+ 2
"x++" is equivalent to "x=x+1;". "a+" is a synthax error.
14th Sep 2016, 8:15 AM
Zen
Zen - avatar
+ 1
a+ doesnt exist, because the equivalent to "+1" is for example ++a. (++a use the increase within the following programm, a++ just after the next command is done)
16th Sep 2016, 11:09 AM
Dennis Wiebler
Dennis Wiebler - avatar
0
x++ is equivalent to x+1 here a single + is a binary operator, means that a+some other variable where as ++ is a unary operator ,means only a++
19th Sep 2016, 1:59 PM
Pragya Vishwakarma