What is the Difference between read only and constant
variables?

Answer Posted / pankaj

Readonly variable can be assigned in run time but constant
variables cnt assign at run time.constant variables is
assigned at compile time only

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the accessibility modifier protected internal?

630


Explain the use of SN.exe

806


What is argument in c#?

688


Is c sharp open source?

644


Does c# support parameterized properties?

692


What is public or shared assemblies ?

751


What is cookies in c# asp net?

669


What is difference between property and variable in c#?

633


What do u mean by delegation of authority?

712


What is getenumerator?

643


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

758


Is array a collection c#?

680


What are class fields?

682


Does c# support const methods, properties, or events?

713


Explain how to implement delegates in c#.net

678