ExamVeda
Login
Home
LINQ (Language Integrated Query) in C Sharp
?

What will be the output of the following C# code snippet?
static void Main() 
{
    int[] nums = { 1, 2, 3, 4, 5 };
    Console.Write("Original order: ");
    foreach(int i in nums)
    Console.Write(i + " ");
    Array.Reverse(nums);
    Console.Write("Reversed order: ");
    foreach(int i in nums)
    Console.Write(i + " ");
    Console.WriteLine();
}

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