Vidyalelo
C# Programming · Q84

Control Flow Statements in C Sharp

Programming · C# Programming · question 84

Q84

What will be the output of the following C# code? static void Main(string[] args) float i = 1.0f, j = 0.05f; while (i < 2.0f && j <= 2.0f) Console.WriteLine(i++ - ++j); Console.ReadLine();

A.
0.05f
B.
1.50f
C.
-0.04999995f
Answer
D.
1f

Answer: Option C

Solution

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