#include <stdio.h>
int main()
{
char name[15];
int x;
char vip[5];
printf("enter the name of the visitor\n");
scanf("%s", &name);
printf("enter the age of the person\n");
scanf("%d", &x);
printf("do the person have vip pass\n");
scanf("%s", &vip);
if (x >= 18 && x < 75)
{
printf("%s are welcomed to the mueseum\n", name);
}
else if (vip == "yes")
{
printf("you can enter");
}
else
{
printf("sorry %s are not allowed to enter\n", name);
}
return 0;
}
here whenever i run programme my else if statement where i want vip string to work is not getting initiated