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
Explain About Iunknown interface Queue
What is attribute and reflection in c#?
What does || mean in programming?
3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close
What is interface inheritance in c#?
What does mean c#?
For read-only operation which property you have to designated?
When a switch is said to be congested?
Where do I put dll files?
Which string method is used for concatenation of two strings in c#?
What are the Configuration files in .net?
What is the C# syntax to catch any possible exception?
how can one use hcl and c sharp together?
What is .dbml file?
What is the difference between private and protected in c#?