Saved Bookmarks
| 1. |
Differentiate between the string functions strcmp() and strcmpi(). |
|
Answer» strcmp(): It is used to compare two strings and returns an integer. Syntax: strcmp(string1,string2)
strcmpi(): It is same as strcmp() but it is not case sensitive. That means uppercase and lowercase are treated as same. eg: “ANDREA” and “Andrea” and “andrea” these are same. |
|