My issue
the array here we take 3 as per requirement but after taking 4 it will show us a right ans . why?
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
string week[3] = {"Monday", "Tuesday", "Wednesday", "Thursday" };
cout << week[ 2 ] << endl;
cout << week[ 3 ];
return 0;
}
Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone