What is the Difference between read only and constant
variables?
Answer Posted / parmjit
We can assign a value to a readonly variable at runtime
till it is a unassined identifier, but once value is
assigned, it cannot be changed.
In case of const we cannot assign a value at run time i.e.
the value assigned to it at declaration time cannot be
change
| Is This Answer Correct ? | 39 Yes | 3 No |
Post New Answer View All Answers
What you mean by inner exception in c#?
What are the boolean data types in c#?
What is the difference between a field and a property in c#?
Is var a data type?
Explain the difference between Response.Write () and Response.Output.Write ().
What is a web service in c#?
How do you define a predicate?
why delegate is type safe?
What is the use of GC.KeepAlive Method?
Can abstract class have constructor c#?
Why are local variables stored in stack?
What is default class in c#?
What is cookies c#?
What is callback method in c#?
What is a helper method in c#?