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
Write your comments