Been stuck on this for ages, cant figure why the the failsafe is not detecting the string.
char EmpCatString[10];
printf("Choose Employee Category CTO or PM or PA");
scanf_s("%9s", &EmpCatString, sizeof(EmpCatString)) == 1;
printf("%s\n", EmpCatString);
if (EmpCatString == "CTO" || EmpCatString == "PM" || EmpCatString == "PA")
{
state = 3;
}
else
printf("please enter a valid Employee Category: \nCTO:\nPM\nPA\n=>");