Variable Initialization And Assignment Flashcards
1
Q
Assignment (copy assignment)
A
Giving a value to a variable, using the assignment operator =, in a separate statement
2
Q
Equality ==
A
Used to test whether two operands are equal in value
3
Q
Initialization
A
Assigning a value to a variable at the same time when is initialized
4
Q
Initializing variables
A
- by copy initialization using =
- by direct initialization using ()
- by brace initialization using {}
5
Q
Zero initialization
A
Initializing variable with empty braces, initializes variable 0 or empty
6
Q
Initializing multiple variables
A
Variables defined on the same line