Discussion :: Functions and Subroutines
-
What will be the output of the C#.NET code snippet given below?
namespace FresherGateConsoleApplication { class SampleProgram { static void Main(string[] args) { int[]arr = newint[]{ 1, 2, 3, 4, 5 }; fun (ref arr); } static void fun(ref int[] a) { for (int i = 0; i 5; Console.Write(a[ i ] + " "); } } } }
Answer : Option C
Explanation :
No answer description available for this question.
Be The First To Comment