sir wrote bollean bit=true;
then he used if loop
if(bit){sys(“hello”);}
else{syso(“bye”)}
and result comes out hello
I am not sure how it came as hello
he was saying the condition if true will print hello else bye
but where did we apply the condition I am nit sure. he only wrote bit in if loop
and next time when he re initialised bit as false then it was printed bye. how ?
is this by default in Boolean data type that if it is initialised as true then it will print output of if loop and if bollaean is initialised as false then it will enter else