Wk. 7 Flashcards
How are arrays initialized?
With a comma-delimited list within curly braces
What are the arguments for passing an array to a function?
The array identifier and the dimension of the array
What is passed to the function when passing an array?
The base address of the array
What is an array?
A contiguous block of elements where each element is the same data type
Switch case labels must be:
Unique set of compile time constants
What is the dot operator in a struct called?
Direct member selection operator
Can all switch labels be converted to an if/else statement?
Yes, because you can use “else if” for each switch
Can all if/else statements be converted to a switch?
No
To read white space chars from an input stream?