ExamVeda
Login
Home
Arrays and Strings in C Sharp
?

Which method does following C# code explains?
static void Main(string[] args)
{
    int a = 10, b = 20;
    method(ref a,  ref b);
    console.writeline(a + "  " + b);
}
static void swap(ref int i,  ref int j)
{  
    int t;
    t = i;
    i = j;
    j = t;
}

Answer & Solution
Correct Answer: Option A
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.