int

The int keyword is used to declare an integer type variable.

Syntax

The syntax is as follows:

int var [= iniExpression];

The var here must be an legal variable name.

Scope

It is used in an variable declaration.

Semantics

Declare an integer type variable.

 


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