+ 1

Is x+=1 the same as x++?

5th Jan 2018, 11:05 AM
Harshini Panuganti
6 Answers
+ 9
Yes!!!
5th Jan 2018, 12:31 PM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
+ 3
yes 👍
5th Jan 2018, 11:22 AM
Vukan
Vukan - avatar
+ 2
yes
6th Jan 2018, 12:51 PM
Akarsh Banthiya
Akarsh Banthiya - avatar
0
yes as it is also the same as x equals X Plus 1
5th Jan 2018, 11:27 AM
Scott (Yo Yo)
Scott (Yo Yo) - avatar
0
no x++ is defined in c language
5th Jan 2018, 12:43 PM
Rohit kushwah
Rohit kushwah - avatar
0
yes,if that is the complete expression...however x++ can be part of more complex expressions......... ex:. y= x++ + y; etc .....in such cases we cannot use x+=1;
7th Jan 2018, 12:59 AM
srividya