What is the Difference between read only and constant
variables?

Answer Posted / guest

Read only variable can be assigned a value at the runtime.
Where as const have to be assigned at the compile time only.

Is This Answer Correct ?    64 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can abstract class have parameterized constructor?

689


What is the difference between an implicit conversion and an explicit conversion?

688


What are sessions in c#?

706


Are there functions in c#?

715


What are namespaces, and how they are used?

768


What is interpolation in programming?

684


What is wcf c#?

715


Explain Direct CAST vs CType ?

741


What is strong name in c# and how can we use it?

724


How many constructors can a class have c#?

678


What do multicast delegates mean?

716


Define a jagged array in c#?

658


What are Memory foot print of an exe?

693


What is msil, and why should developers need an appreciation of it if at all?

803


What does question mark mean in c#?

779