what is read only and constant

Answer Posted / payal mehta

A constant value must be initialized at the time of
declaration
and this value cannot be changed anywhere in the program.

A Read-only value can be assigned any time but it
should not be modified anywhere in the program.we can only
view not edit its value.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the scope of anonymous type ?

658


What kind of the information stored inside the assembly?

645


Why is c# a good programming language?

550


Write one code example for compile time binding and one for run time binding? What is early/late binding?

681


What is wpf application in c#?

540






Where static variables are stored?

549


Explain anonymous type in c#?

632


How do I edit a dll file?

544


Explain the difference between user control and custom control. Also, explain their use.

679


What are the different types of constructors in c#?

618


What is difference between Enum and Struct?

632


Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?

642


Why we use dll in c#?

624


What is the default value of date?

541


What is a web service in c#?

657