How can i use scanf and if with strings (Very basic) : I just had my first class in c programing at college and i did this:

    #include <stdio.h>
    int main()
    {
    char answer='x';
    printf("Should the crocodile eat the man? y/n ");
    scanf("%s",&answer);
    printf("%s",& answer);
    if(answer == 'y')
    	{printf("the man is dead");}
    if(answer == 'n')
    	{printf("the man still alive ");}
    }

How can i do the same with strings instead of single charactes?

i have tried many things but nothing works.
