Which statement in C# allows you to do the following: properly check the variable code to determine

Question:

Which statement in C# allows you to do the following: properly check the variable code to determine whether it contains the character C, and if it does, display

‘‘This is a check’’ and then advance to a new line?

a. if code is equal to C Console.WriteLine("This is a check");

b. if (code = "C")
Console.WriteLine("This is a check");

c. if (code == 'C')
Console.WriteLine("This is a check");

d. if (code == C)
Console.WriteLine("This is a check");

e. none of the above

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: