int i = 1;
int j = 1;
System.Console.WriteLine(i == j);
System.Console.WriteLine(i.ToString() == j.ToString());
System.Console.WriteLine((object)i == (object)j);
Give the sample code above, what is the output to the console?
Answer Posted / aspdev556
true
true
false
Is This Answer Correct ? | 43 Yes | 6 No |
Post New Answer View All Answers
What is “using” statement in c#?
Explain attributes in c#?
What are jump statements in c#?
What does void do in unity?
Why are c# strings immutable?
what is the scope of anonymous type ?
write a c# program add two matrix with input number ?
What is whitespace in c#?
What is datetime minvalue in c#?
Is there any sample c# code for simple threading?
What is constructors, explain with syntax
What is a nested type. Give an example?
What is default constructor in c#?
What is difference between il and dll ?
What's different between c# and c/c++?