R
raghu
#include<stdio.h>
int main(void)
{
int a=1;
int b=2;
int c=0;
c=(a+b)++;
printf("%d",c);
return 0;
}
For the above program I got the error as Lvalue required.I compiled in
Turbo C/C++ compiler.
Can anyone please explain why the error is and how to eliminate it .
Thanks a lot.
Regards,
Raghu
int main(void)
{
int a=1;
int b=2;
int c=0;
c=(a+b)++;
printf("%d",c);
return 0;
}
For the above program I got the error as Lvalue required.I compiled in
Turbo C/C++ compiler.
Can anyone please explain why the error is and how to eliminate it .
Thanks a lot.
Regards,
Raghu