+ 3

What is an Lvalue error in c++ ??

Error handling

29th Jul 2017, 1:54 AM
Shreya Pandey
Shreya Pandey - avatar
4 Answers
+ 1
what are you trying to do? You can't assign a value of another value (m+1 is the value of m incremented, not the variable itself) Maybe you tried to do *(m+1)=n; that means m[1] = n
29th Jul 2017, 2:12 AM
Andrés04_ve
Andrés04_ve - avatar
29th Jul 2017, 2:14 AM
jay
jay - avatar
+ 2
I wrote (m+1)=n;......it shows this error...... But when I removed the bracket, there is no error
29th Jul 2017, 2:09 AM
Shreya Pandey
Shreya Pandey - avatar
0
I'm not sure, could you show some code?
29th Jul 2017, 2:05 AM
Andrés04_ve
Andrés04_ve - avatar