C++: Conditionals and Logics Flashcards

1
Q

An if statement is used to test an expression for

A

truth and execute some code based on it.

Here’s a simple form of the if statement:

if (condition) {

some code

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly