Computer >> Computer tutorials >  >> Programming >> C++

What is the type specifier for boolean in C++?


The type specifier for boolean in c++ is bool. You can use it as −

bool myBoolean = true;