bool

The bool keyword is used to declare a boolean type variable.

Syntax

The syntax is as follows:

bool var [= iniExpression];

The var here must be an legal variable name.

Scope

It is used in an variable declaration.

Semantics

Declare a boolean type variable.

 


@2020-2022 Hao Wu. All rights reserved. Last update: January 29, 2022