InterviewSolution
Saved Bookmarks
| 1. |
Differentiate the outputs of the following C++ statements and also give reason 1. cout<<strcmp("world", "WORLD");2. cout<<strcmpi("world", "WORLD"); |
|
Answer» 1. >0 Here first string “world” is greater than “WORLD”. 2. It prints 0. Because strcmpi is same as strcmp() but it is not case sensitive. That means uppercase and lowercase are treated as same. |
|