What is the Difference between read only and constant
variables?
Answer Posted / isaiselvan
readonly assign a value at run time but we can assign a declaration part.
const values assign only at declaration part.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What are the extension methods in c#?
What is a must for multitasking
Explain the difference between const and static read-only?
How to reverse each word in a string using c#?
what is an exception in .net?
What is the use of convert toint32 in c#?
Explain inheritance in c#?
What is a hashset c#?
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
How do I create a multi language, multi file assembly?
What is the benefit of using interface in c#?
Why do we need generics?
What is entity framework in c#?
Is int a struct in c#?
Define property in c#.net?