What is the difference between const and readonly?
Correct Answer: A const is a compile-time constant whereas read-only allows a value to be calculated at run-time and set in the constructor or field initializer. So, a 'const' is always constant but 'read-only' is read-only once it is assigned.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C# MCQ Questions