how can i get my programme to read the first character eg, if i have a programme that asks the user to input a word, then reads the word and checks if the first chacter is a vovel
#include <stdlib.h>
#include <stdio.h>
int main (void)
{
char a,e,i,o,u, word[50];
char letter;
printf("input a word: ");
scanf("%s", &word);
letter = word[0];
printf("%s\n",letter);
system ("pause");
return 0;
}
can you tell me where the mistake is?