ExamVeda
Login
Home
File Handling and Input Output in C Sharp
?

What will be the output for following input from the console as a character?
static void Main(string[] args)
{
    Console.WriteLine("what is your name?");
    char s;
    s = Convert.ToChar(Console.ReadLine());
    Console.WriteLine("how are you: "+s);
    Console.Read();
}

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.