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 the difference between proc. Sent by val and by sub?
What is a console in c#?
What's the difference between an integer and int?
What is stringwriter c#?
How to declares a two-dimensional array in C#?
What are the Types of assemblies that can be created in dotnet
Can we have only “try” block without “catch” block in c#?
What is the difference between interface and inheritance in c#?
What is a callback c#?
What do you know about Translate Accelerator?
What is difference between interface and abstraction?
What is the difference between struct and class c#?
What is a framework in c#?
What is the syntax for calling an overloaded constructor within a constructor?
What is .cs file in c#?