What is the Difference between read only and constant
variables?

Answer Posted / zia khan

The difference between the readonly and const data members
is that const requires you to initialize with the
declaration, that is directly

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is int tryparse in c#?

681


What is thread safe in c#?

657


Define parsing?

672


Write a program to find the angle between the hours and minutes in a clock

686


How to use nullable types in .net?

750


Can interface have virtual methods in c#?

654


What is parameter c#?

722


Why do we use virtual methods in c#?

689


Explain the clr triggers?

711


Is system a class in c#?

649


how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used

2588


What are some examples of desktop applications?

681


What is difference between first and firstordefault?

691


What are the different types of delegates?

681


What is binary search tree in data structure?

659