I'm trying to declare a global 6x6 char array in c++ with the entire array initialised with the letter 'I'.
char result[] = new char[6][6];
result={{'I','I','I','I','I','I'},{'I','I','I','I','I','I'},{'I','I','I','I','I','I'},
{'I','I','I','I','I','I'},{'I','I','I','I','I','I'},{'I','I','I','I','I','I'}};
error obtained : 1. error: array initializer must be an initializer list or string literal 2. C++ requires a type specifier for all declarations. This error goes away if I initialise in main().
Query solved.