What will be the output of the following C# code? [code] static void Main(string[] args) { int i; for (i = 0; ; ) {

Hoàng Minh An

New member
What will be the output of the following C# code?
Code:
 static void Main(string[] args)
 {
     int i;
     for (i = 0;  ; )
     {
         Console.WriteLine("hello");
     }
     Console.ReadLine();
 }
A. No output
B. hello
C. hello printed infinite times
D. Code will give error as expression syntax
 

Tìm kiếm

Back
Top