Home » C# Programming » Functions and Subroutines

What will be the output of the C#.NET code snippet given below? namespace CuriousTabConsoleApplication { class SampleProgram { static void Main(string[ ] args) { int i = 10; double d = 34.340; fun(i); fun(d); } static void fun(double d) { Console.WriteLine(d + " "); } } }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!