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
Can the accessibility of a type member be greater than the accessibility of its containing type?
What is ispostback c#?
How do I open the console window?
What is deferred execution?
Why c# is type safe?
Is null or empty in c#?
What is string concatenation?
When should I throw an exception?
How do I create a multi language, multi file assembly?
What does f mean in c#?
Why to use lock statement in c#?
What are the benefits of using windows services:
Difference between value and reference type.
Write the syntax for catching an exception in c#?
What is the use of ispostback in c#?