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 i = 5; int j; fun1(ref i); fun2(out j); Console.WriteLine(i + ", " + j); } static void funl(ref int x) { x = x * x; } static void fun2(out int x) { x = 6; x = x * x; } } }
Answer : Option C
Explanation :
No answer description available for this question.
Be The First To Comment