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
is it possible to access a remote web service Without UDDI?
how background thread access to ui control?
What is wpf c#?
What is the use of dll file in c#?
Are arrays immutable c#?
If dll and exe files are same it means you can deploy both the files in gac?
Give an example of a ctype.
Why abstract class is not instantiated in c#?
Give an example of a directcast.
Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?
What is the difference between arraylist and list in c#?
What is interface inheritance in c#?
What is the difference between func and action delegate?
What are the characteristics of c#?
What is hashtable c#?