Saved Bookmarks
| 1. |
Which of these methods is used to compare two strings such that after comparison output returns different integer values as (0 for false, 1 for true)?(a) Equals ()(b) == operator(c) Compare()(d) None of the mentionedI have been asked this question in an online interview.Asked question is from Comparison of Strings topic in section Arrays and Strings of C# |
|
Answer» The correct option is (c) COMPARE() |
|