I would like to know what is the problem with this code. I want to right a name in the programming and if it's correct give me "Let's go" if it's not give me go back. I want to add Zay in if statement through right it in scanf. but it gives me an error I searched a lot but there is a problem, pls help me.
#include <stdio.h>
int main()
{
char name[15];
printf("Type name ");
scanf("%s",&name);
if(name == 'zay')
{
printf("Let's go, %s\n", name);
}
else
{
printf("go back, %s\n", name);
}
return 0;}