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

What is returned if you pass the value 12.34 to the parsefloat () function?

908


Why do I get an error (cs1006) when trying to declare a method without specifying a return type?

895


What is ioc containers c#?

831


Explain the functionalities of satellite assembly?

904


Why are local variables stored in stack?

967


What is msil in c#?

899


Can a class have static constructor?

944


What is anonymous class in c#?

873


Where is the keyword void used?

893


What is difference between private, protected, and public in C#?

995


Why is dll used?

949


What is callback function in c#?

874


What do u mean by delegation of authority?

887


What is the difference between console and windows application?

909


Why do we need interface in c#?

939