+ 2
Compilation error message- Lvalue required in C ??? What it actually mean??
7 Antworten
+ 3
if you are performing a operation like
int a;
5=a;
then it will give you error L value recquired because the compiler assumes a variable name on left hand side to store value in it.
Hope it helps.
+ 2
lvalue evaluates to location value.
cout<<I++++;
would produce such an error.
+ 2
void main(){
int i=5;
printf("%d",(i++)+(++i));
}
should work if your syntax is correct I know c++ syntax and not c syntax
+ 2
yes it would the either way because your code must be evaluated as
(I++++)+I;
And as I told I++++ gives lvalue error.
+ 1
i think you are forget to include a library
or using wrong method dosen't work in c
+ 1
void main(){
int i=5;
printf("%d",i+++++i);
}
here it is giving Lvalue required....
+ 1
Megatron it is working using paranthes or giving space i++ + ++i