single char array

hi, umm i just wanna know if theres a way to create a single char array, an array wc stores chars like 'a' instead of ''a''. It is because i need to get an single char input by getch, and compare it to an array of predefined char arrays like if('f'==myArray[5]) which is also equal to 'f'. Please help me. Thanks!
Yes, just use a char array. That's all they are:

1
2
3
4
5
6
7
8
9
char array[5];

array[0] = 'a';
array[3] = 'G';

if(array[3] == 'G')
  DoSomething();

// etc 
Topic archived. No new replies allowed.