ExamVeda
Login
Home
Basic Syntax and Data Types in C Sharp
?

Why does a float variable stop incrementing at number '16777216' in the following C# code?
float a = 0 ;
while (true)
{
    a++;
    if (a > 16777216)
    break;
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.