Question
Check Birthday DXC Automata Fix Questions AMCAT
int checkBirthday(char *month,int day)
{
if(strcmp(month,"July"))||(day==5))
return 1;
else
return 0;
}
-------------------------------------------
solution:
int checkBirthday(char *month,int day)
{
if((strcmp(month,"July")==0)&&(day==5))
return 1;
else
return 0;
}