0
How a+++b is tokenised?
How is this interpreted?
5 Answers
0
a+b
a+1
So a=1, b=3:
a+b = 4
a=a+1 = 2
Thus, a=2, b= 3, c=a+b= 4
0
it depends on the compiler since C does not have a standart, some will start from the left (++b + a) some from the right ((a++) + b) which will influence the result.
0
When i tried to execute it, it showed ans as that of (a+b) only... I am not getting how it is executed
Plz do help
0
then maybe its possible its going like this:
b + a++
(getting the arguments left to right)
0
Yeah...it is b + a++... Because a is incrementing by 1..
Thank you @capsloth