Q. What will be the error in the following C# code?
Code:
Static Void Main(String[] args)
{
const int m = 100;
int n = 10;
const int k = n / 5 * 100 * n ;
Console.WriteLine(m * k);
Console.ReadLine();
}
β
Correct Answer: (B)
Expression assigned to βkβ should be constant in nature