Wk. 7 Flashcards

1
Q

How are arrays initialized?

A

With a comma-delimited list within curly braces

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

What are the arguments for passing an array to a function?

A

The array identifier and the dimension of the array

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

What is passed to the function when passing an array?

A

The base address of the array

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

What is an array?

A

A contiguous block of elements where each element is the same data type

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

Switch case labels must be:

A

Unique set of compile time constants

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

What is the dot operator in a struct called?

A

Direct member selection operator

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

Can all switch labels be converted to an if/else statement?

A

Yes, because you can use “else if” for each switch

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

Can all if/else statements be converted to a switch?

A

No

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

To read white space chars from an input stream?

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