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

How many keyword present in C# language ?

546


Is an interface a type c#?

515


How do you read an Excel sheet in C#?

558


what is main function of alternate teamplate of datalist?

1642


What is a data set in c#?

509






What is mvc pattern in c#?

517


What is difference between write and writeline?

466


What is difference between sleep () and wait ()?

492


What are the advantages of properties in c#?

555


Define a class and an object?

558


What is difference between list and ilist in c#?

470


in object oriented programming, how would you describe encapsulation?

559


What is the difference between as and is operators in c#?

440


Can we override main method in c#?

482


What can you do as a .net developer?

496