+ 2

What does the following code output?

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace main1 { class Program { static void Main(string[] args) { try { Console.WriteLine("Hello"); } catch (ArgumentNullException) { Console.WriteLine("A"); } catch (Exception) { Console.WriteLine("B"); } finally { Console.WriteLine("C"); } Console.ReadKey(); } } }

16th Oct 2017, 4:25 PM
Pablo Casado Rodríguez
Pablo Casado Rodríguez - avatar
3 Respostas
+ 3
Hello luka, yes, but is something more that you can not see here (the output of SoloLearn)
16th Oct 2017, 4:35 PM
Pablo Casado Rodríguez
Pablo Casado Rodríguez - avatar
+ 3
Ana , you can use the ide/console of SoloLearn , but to see better the output, use other console and free... Are millions of console online... Bye!
17th Oct 2017, 5:42 AM
Pablo Casado Rodríguez
Pablo Casado Rodríguez - avatar
+ 2
i cant have ide
16th Oct 2017, 7:51 PM
Ana