answersLogoWhite

0


Best Answer

Syntax:

if (expression)

statement;

[else

statement;]

The expression must evaluate to a boolean value, where zero is false and all non-zero values are true. The statement (including the optional else statement) may be simple or compound, and may include a nested if statement. When the expression evaluates true, the first statement is invoked. If an else statement is provided, it is only executed when the expression evaluates false. After the appropriate statement is invoked, execution passes to the statement that immediately follows the entire if statement.

User Avatar

Wiki User

โˆ™ 2014-02-10 05:44:59
This answer is:
User Avatar
Study guides

Data Science

โžก๏ธ
See all cards
4.29
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
7 Reviews

Add your answer:

Earn +20 pts
Q: What is the format of if statement in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
People also asked