C# Questions and Answers

What is difference between constants and read-only?

Constant variables are declared and initialized at compile time. The value can’t be changed afterwards. Read only is used only when we want to assign the value at run time.