Boolean declaration

Guys, I wondered why do we declare boolean bPlayAgain = false instead of true?
I mean is there any diffrence between these two?
I have tried out both and it gave me the same thing

Initializing is not the problem really, nor it is essential anyways… For you could leave the declaration without initialization to true or false anyways. However, as far as I’m concerned, it is about the programming flow, and what you do expect the outcome (return) of that Boolean function to be.

Privacy & Terms