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 a linq in c#?

484


Is it possible to have different access modifiers on the get/set methods of a property in c#?

604


What is whitespace in c#?

494


How many digits is a 32 bit number?

481


Can a class have multiple constructors c#?

500






What is a event in c#?

464


What is cookies c#?

485


Explain the three test cases in unit testing?

596


What issues can be faced while delivering code?

1480


What is a method signature?

529


Are c# references the same as c++ references?

551


Explain the use of virtual, sealed, override, and abstract method?

480


What does int32 mean in c#?

473


How does the lifecycle of Windows services differ from Standard EXE?

524


How long does it take to learn c# programming?

476