In the fourth example , X=a++_++a First a should be incremented so a is 11 and it should be subtracted from a so the x = -1 And the a =11 Why can't it be the solution of that problem ? Can anyone answer it?
no, because whenever u first incremented the value it takes the same value as 11. this is because it is 'a' in both cases so 11-11 will equal 0. So it's confusing for the compiler to understand.
the result will be x = -2. in the expression x = a++ - ++a; first a++ , a is incremented , a =11 again ++a , a is incremented , a =12 now , ++a is updated to 12 and a++ uses the present value which is 10 and increments later so , x = 10 - 12 => -2.
initially b is pre-decremented(b=19 now) then assigned to value of a(a=10) and sumed up and assigned to x(x=29 now) then a is post-incremented(a=11 now) thus the values are a=11,b=19,x=29.
Sir thank you very much for explaining the switch statement in C so nicely .
Thank you sir 🙏🏼
Very helpful lectures.
Thank you 👍
In the fourth example ,
X=a++_++a
First a should be incremented so a is 11 and it should be subtracted from a so the x = -1
And the a =11
Why can't it be the solution of that problem ?
Can anyone answer it?
I too thought the same that x will be -1
no, because whenever u first incremented the value it takes the same value as 11. this is because it is 'a' in both cases so 11-11 will equal 0. So it's confusing for the compiler to understand.
the result will be x = -2.
in the expression x = a++ - ++a;
first a++ , a is incremented , a =11
again ++a , a is incremented , a =12
now , ++a is updated to 12 and a++ uses the present value which is 10 and increments later
so , x = 10 - 12 => -2.
What's the wrong with the Sound ??
7:42
what's the answer for 3rd example?
Can someone please help me out with that?
What's the problem?
initially b is pre-decremented(b=19 now) then assigned to value of a(a=10) and sumed up and assigned to x(x=29 now) then a is post-incremented(a=11 now) thus the values are a=11,b=19,x=29.
a=11 b=19 x=29
@@naveenkrishna620 thank u so much
Prefix
Sir neeche ka part hi nahi dhikta uske upar aap jo bolte hai voh lhika aa jata
Sir plz fix it
Option me jao aur caption ko turned off kar do.
very low sound
Ha is video mai low hai