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) { object[] o = new object[] {"1", 4.0, "India", 'B'}; fun (o); } static void fun (params object[] obj) { for (int i = 0; i < obj.Length-1; i++) Console.Write(obj[i] + " "); } } }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!