In this Short circuiting rule B always contains the 0 value.
Like in example 5 && 0 = 0
Short Circuiting rule
hey @mansi171299 ,
Your doubt is not clear.
Can you please more brief to this , What actually do you want to ask.
Thank You .
Basically I want to ask what is B in the Short Circuiting Rule . How it is used?
hey @mansi171299 ,
First of all i am really sorry to be late to reply you.
and now your doubt ,short circuiting rule takes two operators with a single operation , so as explained in the video, we have kept the first to be either 0 or 1 , and another operator to be B .
B can be anything , integer or string or bool , anything.
but when you take B = 0.
The operations consider that value to be False , so if you will do 1 && B -> 1 && 0 will result in 0.
I hope you this helps you .
It really good to hear that.
I would request you to kindly mark this doubt as resolved in your course doubt section and also provide your valuable feedback as it would help to us improve this platform and provide you with better learning experience.
Thank You and Happy Learning .