Trịnh Quốc Lâm
New member
What will be the output of the following C# code?
A. -9 -8 -7 -6 -5 -4 -3 -2 -1
B. -10 -9 -8 -7 -6 -5 -4 -3 -2
C.
D. -8 -7 -6 -5 -4 -3 -2 -1
Code:
static void Main(string[] args)
{
int i = -10;
for ( ;Convert.ToBoolean(Convert.ToInt32(i)) ;Console.WriteLine(i++)) ;
Console.ReadLine();
}
B. -10 -9 -8 -7 -6 -5 -4 -3 -2
C.
Code:
-10 -9 -8 -7 -6 -5 -4 -3 -2 -1