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 is the difference between int16 and int32 in c#?
What is the meaning of MSIL?
What is polymorphism in c sharp?
Can a private virtual method can be overridden?
What is the difference between continue and break statement?
How to install or uninstall a windows service?
What is console readkey in vb net?
What is the difference between func and action delegate?
From which base class do all Web Forms inherit from?
What is token in c#?
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
What is an example of delegation?
Is it possible to have a static indexer in c#?
Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records
Why do we use generics in c#?