Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Define constructor in c#.

912


What is the difference between CreateObject() and GetObject()?

1130


In c#, what will happen if you do not explicitly provide a constructor for a class?

966


What is the use of console?

890


Why is c# a good programming language?

1006


Explain inheritance in c#?

957


What is difference between array and arraylist in c#?

968


Can You Prevent Your Class From Being Inherited By Another Class?

949


What are some of the commonly used commands in sqlcommand?

912


Differentiate between copy and default constructor.

1034


What are primitive data types in c#?

944


Why to use “using” in c#?

1076


What is int16?

935


Is a dll an assembly?

921


Are multiple data types stored in System.Array?

1190