Solved

What Is the Output of the Following Code (Assuming It \quad

Question 29

Multiple Choice

What is the output of the following code (assuming it is embedded in a correct and complete program) ?
char letter[5] = {'o','k','c','e','g'};
for(int i = 4;i >= 0;i-- )
\quad cout << letter[i];
cout << endl;
choices:


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.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents