My issue
Is it important to mention the array elements in double quotes why is it giving error in using single char please tell.
My code
#include <bits/stdc++.h>
using namespace std;
int main(){
string x[6] = {'C','O', 'D', 'I', 'N', 'G'};
for(int i=0;i<6;i++){
cout<<i<<" = "<<x[i]<<endl;
}
return 0;
}
Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone