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

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

Equality ==

A

Used to test whether two operands are equal in value

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

Initialization

A

Assigning a value to a variable at the same time when is initialized

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

Initializing variables

A
  • by copy initialization using =
  • by direct initialization using ()
  • by brace initialization using {}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Zero initialization

A

Initializing variable with empty braces, initializes variable 0 or empty

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

Initializing multiple variables

A

Variables defined on the same line

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