ExamVeda
Login
Home
Basic Syntax and Data Types in C Sharp
?

What will be the output of the following C# code?
static void Main(string[] args)
{
    string Name = "He is playing in a ground.";
    char[] characters = Name.ToCharArray();
    StringBuilder sb = new StringBuilder();
    for (int i = Name.Length - 1; i >= 0; --i)
    {
        sb.Append(characters[i]);
    }
    Console.Write(sb.ToString());
    Console.ReadLine(); 
}

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