hai,
when i saw the below expression i faced a problem.
int a=5,b;
b=+++a;
after this b has a value of 6.
wheareas
int a=5,b;
b=---a;
this results in l value error.whats happening?
moreover the statement
int a=5,b=7,c;
c=a+++b;
after this expression c has a value of 12,a has a value of 6,b has value of 7
why can it be taken as pre increment of b followed by addition to the value of a?
why is it taken as pre increment of a followed by addition to the value of b?
how will the lexical analyser evaluate it?
thanks for your reply in advance.bye take care.
when i saw the below expression i faced a problem.
int a=5,b;
b=+++a;
after this b has a value of 6.
wheareas
int a=5,b;
b=---a;
this results in l value error.whats happening?
moreover the statement
int a=5,b=7,c;
c=a+++b;
after this expression c has a value of 12,a has a value of 6,b has value of 7
why can it be taken as pre increment of b followed by addition to the value of a?
why is it taken as pre increment of a followed by addition to the value of b?
how will the lexical analyser evaluate it?
thanks for your reply in advance.bye take care.
Comment