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
Computer Science & Information Technology
You might also like to view...
Rule-Based Access Control can be changed by users.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
____ identifiers are words that are predefined in C.
A. Standard B. Programmer-created C. Reserved D. Primitive
Computer Science & Information Technology