Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: @t
In the first statement why y value is incremented to 1? there is two increment operator one for x and one for y and it's associativity is right to left so why x value is not incremented and y will be as it is???
x value will not increment because logical or operator has to return true or false. so if first one is true then no need to check the second one. That's why only y value is increment.
Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: @t
Sir ur way of teaching is excellent...these videos are so helpful
Excellent teaching way...thanks sir
sir awesome ..upload more video thanku so much
very nice explanation sir g
In the first statement why y value is incremented to 1? there is two increment operator one for x and one for y and it's associativity is right to left so why x value is not incremented and y will be as it is???
x value will not increment because logical or operator has to return true or false. so if first one is true then no need to check the second one. That's why only y value is increment.
Thank you so much sit
nice explanation ...
When i ran this program, x value is coming out to be 6? Please explain?
Nice explanation
Thank you sir🙏🙏
As you say Airthmetic>logical , so first execute 2+3 then logical or????
A/C 4=4
thnx
Sir, later you told that the increment and decrement operator evaluate first, alter that logical operators execute. Then why ++x will not execute
True.....
Sir , even -1(-ve number )is consider as true value?
thanks a lot sir...
Bro am the new subscriber where are u from??
why did the x and y values did not change?
Sir agr y ki value 3 ho too kese hoga
Sir, what's the answer for 0&&1
0
25
Nice
Sir how can u say 1 is true and 0 is false
Generally in programming ., 0 indicates false and 1 indicates true .................
@@ganeshch2761 what if the value is neither 0 nor 1 ,say 5 then what will be the output 0 or 1.
@@farCryStar result Will be 1 because every non-zero value is indicated by 1 and only zero values are represented by 0
Thank you sir