Syntax error What is the type specifier for boolean in 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;
Updated on: 2020-02-26T11:15:59+05:30

255 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements