Select from following answers:- []
- @
- ==

- ||
- All Above
"==" is the equality operator that determines if the two strings are equal. e.g.
string x = "hello";
string y = "hello"
Console.WriteLine( x == y ? "Equal":"Not Equal");
[] is the indexer and cannot be use for comparison.
@ is the operator which by passes any special characters e.g. var x = @"C:\myfolder\text.txt"
|| is the relational OR operator and not a comparison operator.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator