Explain the difference between “constant” and “read-only” variables used in C#?
S.no | Constant variables | Read-only variables |
---|---|---|
1. | Declared at compile time | Used to assign a value at run time |
2. | Value cannot be changed | Value can be changed |
BY Best Interview Question ON 13 Feb 2019