First of all, stop using "void main()", main is an integer returning function, neglecting the return type can lead to bad things like stack corruption after your program exits. It's on the creator of C++'s website. "void main()" has never been valid in C or C++.
Secondly, I think you may under-allocating with only 10 characters, about 1024 or 2048 MAY be sufficient.
Also, the functions in <ctype.h> can be very useful for converting toupper and tolower.
ex: if(toupper(x[0]) == 'A')
But first you may want to verify the character is actually a letter with isalpha() also in that header file.