CJCoding With Joseph
← Back to Question List
C# Code Walkthrough #43

Comparing Strings

mediumStrings

📄 Code

Read carefully — what does this print?
1string a = "hi";
2string b = "hi";
3Console.WriteLine(a == b);
4Console.WriteLine(a.Equals(b));

🎯 Your Answer