Q96
What will be the error in the following C# 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();
A.
'k' should not be declared constant
B.
Expression assigned to 'k' should be constant in nature
AnswerC.
Expression (m * k) is invalid
D.
'm' is declared in invalid format
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board