Home TechnologyProgramming Subscribe to RSS

What Is The Output?

Int i = 5; string s = Convert.ToString(i); double d = Convert.ToDouble(i); Console.writeline(s); i mean what would be the output for this?....it prints 5 on the screen. Is it showing the correct output?

Answer Question

1 Answer - Sort by: Date | Rating

    Yes it is correct output because int "i" is converted into string "s" and you are displaying string "s". So the output is correct.
    0 0

    Farhan_sh 

    answered 1 year ago

      More

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International