2 Output Following Code Show Work Int List 5 Int 0 Q37164281

Can you solve #2 and #3
2. What is the output of the following code? (show your work). int list[5]; for (int i -0;i <5; i++) list[i] = i + 4; cout<<2. What is the output of the following code? (show your work). int list[5]; for (int i -0;i <5; i++) list[i] = i + 4; cout<< list[0] << “”<< list[4]; What is the output of the following code? (show your work). 3. int list[5]-(4, 7, 5, 3,03; int x 3; list[x] = list[2 * x-41; list[x+1] 6; list(x-1 ] = list(x-2]; cout<< list[1]<<list[2] < list[3] << list[4];

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.