DOUBT REGARDING CPP TYPE CONVERSION VIDEO

(Ref time 2:24)
Why in char+bool bool is said to be one? It is fine that char is implicitly typecasted to int but why bool to 1 it can be 0 also and will int be the resultant datatype be int of complete expression?

Hey Sonali, in c++ 0 is considered as false and any non zero value is considered as true and as you know char stores the ascii value of characters. So, when we do char + bool it will results into (ascii value of char) + 0 or (ascii value of char) + 1 and 0 or 1 will depend upon if bool is true or false.