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 you mean by inner exception in c#?

979


What are the boolean data types in c#?

1019


What is the difference between a field and a property in c#?

934


Is var a data type?

942


Explain the difference between Response.Write () and Response.Output.Write ().

957


What is a web service in c#?

1146


How do you define a predicate?

890


why delegate is type safe?

3005


What is the use of GC.KeepAlive Method?

1162


Can abstract class have constructor c#?

864


Why are local variables stored in stack?

1037


What is default class in c#?

924


What is cookies c#?

887


What is callback method in c#?

939


What is a helper method in c#?

935