Hello everybody! I've a problem with a char array: why i can't give a char in a position of the array? ex:

char array [7]; //declaration of a char array 7 elements

for (int i=0;i<7;i++)
array[i]='x';

array [5]='y'--->error

How could I insert the char 'y' in the 5th position of the array?