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;
}
float a = 0 ;
while (true)
{
a++;
if (a > 16777216)
break;
}A. Sign and Exponent for '16777217' is same as for '16777216'
B. Mantissa is different for '16777216' and '16777217'
C. Sign and Exponent for '16777217' is different from '16777216'
D. None of the mentioned
Answer: Option B
Related Questions on Basic Syntax and Data Types in C Sharp
What is the correct syntax to declare a variable in C#?
A. num = int;
B. var num;
C. num int;
D. int num;
What is the purpose of the 'var' keyword in C#?
A. Declares a constant
B. Converts a variable to string
C. Implicitly declares a variable
D. Defines a method

Join The Discussion