New course! Every coder should learn Generative AI!
Try a free lesson0
what is x++ and a+
what is x++ and a+
4 Answers
+ 6
x++ is equivalent to x+1.
a+ is the grade you would not get in a programming course.
+ 2
"x++" is equivalent to "x=x+1;".
"a+" is a synthax error.
+ 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)
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++