Strcmp() function not working properly [closed]

Use the following code:

if(strcmp(name,empName)==0)
{
     ...
}

Note that there must be no quotation marks around empName to compare its contents.

Leave a Comment