Use the following code:
if(strcmp(name,empName)==0)
{
...
}
Note that there must be no quotation marks around empName
to compare its contents.
0
solved 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.
0
solved Strcmp() function not working properly [closed]