#include int main(){ char name[20]; printf(\"enter a name \"); scanf(\"%s\",name); switch(name[20]){ case \"kevin\" :
since the name is declared as a char type ,it would be better if you use "%c" instead of using "%s" inside the scanf() method.
"%c"
"%s"
scanf()