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 read only and constant

Answer Posted / ganesh

a constant must be initialized at the time of decleration
and this value cannot be changed anywhere in the program.

whereas a readonly can be initialized at anywhere in the
program and the value can be changed

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use yield in c#?

856


Can a method return multiple values in c#?

817


What is a destructor in c#?

913


What is string class in c#?

843


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

895


When would you use generics in your code c#?

864


What is the difference between yield and return?

826


Explain the differences between static, void and public in c#?

960


What is the extension of c# file?

917


Can we inherit static class in c#?

928


What does the keyword “virtual” declare for a method or property?

902


Is c# an open source language?

937


What are properties in C#?

919


What is the difference while using directive vs using statement ?

934


Can we override interface method?

900