Predict the output for below simple C# program:
public class Program
public static void Main(string args)
char x = 'X';
int i = 0;
Console.WriteLine (true ? x : 0);
Console.WriteLine(false ? i : x);
0 of 1 questions completed
Please click on ‘Start Quiz’ to answer..
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
0 of 1 questions answered correctly
Time has elapsed
You have reached 0 of 0 points, (0)
Question 1 of 1
Please choose the correct answer from below options :Correct
Congrats !! You got it right.Incorrect
Sorry, This is not correct.
© 2015, admin. All rights reserved.