0

If x=2; than what is x++++

is it incorrect

17th Jan 2017, 5:13 AM
Prakash kumar Verma
Prakash kumar Verma - avatar
5 Respuestas
+ 2
Compile Error , Because x++++ doesn't support by any Compiler ......
17th Jan 2017, 5:44 AM
SUMANTH VENKATA SAI KRISHNA Manduru
SUMANTH VENKATA SAI KRISHNA Manduru - avatar
+ 2
This is an lvalue error.. x++++ is interpreted as (x++)++ I.e (2++)++ which is an error as increment and decrement can be used on variable[ l value]
17th Jan 2017, 8:53 AM
Ayush Mishra
Ayush Mishra - avatar
+ 1
error u can do x++ then in other line the same or with a loop
17th Jan 2017, 5:35 AM
Kawaii
Kawaii - avatar
0
kk
17th Jan 2017, 7:27 AM
Prakash kumar Verma
Prakash kumar Verma - avatar
0
It looks like operation++ takes lvalue and returns rvalue, so when the second ++ is provided an rvalue in parameter, compiler will submit an error.
6th Dec 2019, 6:39 AM
Omar Rekik
Omar Rekik - avatar