Check out example codes for "how to initialize a boolean in c++". It will help you in understanding the concepts better.

Code Example 1

bool b1 = true;      // declaring a boolean variable with true value

Learn ReactJs, React Native from akashmittal.com