What is the output of the following code (assuming it is embedded in a correct and complete program)?
```
char letter[5] = {'o', 'k', "c", "g''};
for(int i = 4; i >= 0; i-- )
cout << letter[i];
cout <
a) okceg
b) gecko
c) ecko followed by a character from an out of bounds access.
d) kceg followed by a character from an out of bounds access.
e) Correct answer not listed. Specify what the output is.
b) gecko
You might also like to view...
Which of the following is an example of an infinite loop?
a. While 1 > 2 b. While 2 < 1 c. While 1 == 1 d. Loop 1000 times times e. None of these
To follow the principle of least privilege, the selectionSort function should receive the array to be sorted as:
a. A nonconstant pointer to nonconstant data. b. A nonconstant pointer to constant data. c. A constant pointer to nonconstant data. d. A constant pointer to constant data.
A type of digital phone line that has three channels is DSL
Indicate whether the statement is true or false
A version of an authoring system that allows your project to play back without requiring the full authoring software and all its tools and editors is called a ____________________ (two words) version.
Fill in the blank(s) with the appropriate word(s).