Vidyalelo
C# Programming · Q104

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 104

Q104

What will be the output of the following C# code? class Program static void Main(string[] args) int i ; for (i = 0; i < 5; i++) Console.WriteLine(i); Console.ReadLine();

A.
0, 1, 2, 3, 4, 5
B.
0, 1, 2, 3
C.
0, 1, 2, 3, 4
Answer
D.
0, 0, 0, 0, 0

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board