if I can define
string arr[5] = {"a","ab","abc","abcd","abcde"};
then how will the compiler know how long is the string
like first string is 1 char and the last is 5 char and allocate
a memory space accordingly.
EXample:
int x;
this statement reserves 2 bytes for an iteger type data pointed at by x.
how will this work for string data type.
if i declare
char arr[10][5];
then compiler will reserve total of 10*5=15 bytes one for each character and some of these characters will form a string(rows).