0
Q:

c++ boolean

bool isCodingFun = true;
bool isFishTasty = false;
cout << isCodingFun;  // Outputs 1 (true)
cout << isFishTasty;  // Outputs 0 (false)

//credit to w3schools.com
0
bool b1 = true;      // declaring a boolean variable with true value
0

New to Communities?

Join the community