Vidyalelo
C# Programming · Q44

Control Flow Statements in C Sharp

Programming · C# Programming · question 44

Q44

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

A.
0.05
B.
-0.05
C.
0.95
D.
-0.04999995
Answer

Answer: Option D

Solution

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