Array of Strings With Index
easyQuestion 533An array<string, 3> named days has been created with the values {"Mon", "Tue", "Wed"} and a loop over i from 0 to 2 is already written.
Inside the loop, print the index i, a colon, a space, and the day name at that index, then a newline.
Expected output
0: Mon 1: Tue 2: Wed
= newline. The output ends with a newline, so print one after the last line.
Hints2 available
Sign in to use hintsTopics
STL Containersstd::array
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cout, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.