ExamVeda
Login
Home
Classes and Objects in C Sharp
?

What will be the output of the following C# code?
static void Main(string[] args)
{
   int a = 5;
   fun1 (ref a);
   Console.WriteLine(a);
   Console.ReadLine();
}
static void fun1(ref int a)
{
    a = a * a;
}

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.