What is the output of the following code snippet?

int main()
{ int x[ 10 ] = { 2, 7, 4, 8, 5, 4, 9, 7, 6, 3 };
for ( int i = 0; i < 10; i++ )
cout << x[ i ] << endl;
return 0; }

Options
- 0,2,7,4,8,5,4,9,7,6,3
- 2,7,4,8,5,4,9,7,6,3,0
- 3,6,7,9,4,5,8,4,7,2
- 2,7,4,8,5,4,9,7,6,3


CORRECT ANSWER : 2,7,4,8,5,4,9,7,6,3

Discussion Board
answer

b


vikas 06-23-2015 04:07 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement