what will be the output?

  • Thread starter Thread starter maheshwari.sumit
  • Start date Start date
M

maheshwari.sumit

Num1=1
Num2=1
writeconsole(Num1==Num2)
Writeconsole(Num1.ToString()==Num2.ToString())
WriteConsole((object)Num1==(object)Num2)
What will it print?
 
true and false probably. Have you tried running the program yourself?
 
Num1=1
Num2=1
writeconsole(Num1==Num2)
Writeconsole(Num1.ToString()==Num2.ToString())
WriteConsole((object)Num1==(object)Num2)
What will it print?

Since you don't show the declaration of Num1 and Num2 we have no idea what
types they are, so this is impossible to answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top