CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Comparing Strings

C# code walkthrough · Question 43
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