Getting first character

Im trying to get the first character. in the string but it does not work here is my code.
if (command[0] == "a")
{
prinf("hi");
}
Use single quotes:
1
2
'a' //This is a char
"a"//This is a string 

Topic archived. No new replies allowed.