What is the Difference between read only and constant
variables?
Answer Posted / isaiselvan
readonly assign a value at run time but we can assign a declaration part.
const values assign only at declaration part.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is float in unity?
What is the difference between virtual and override in c#?
What is private protected in c#?
Is c# a strongly-typed language?
Write a C# program to find the Factorial of n
Is constructor a static method?
What is Named parameter in C#?
What is default method in c#?
What is int64 in c#?
What is delegates in c# and uses of delegates?
What is function c#?
What is the default modifier for class in c#?
Tell me the difference between value passing and address passing?
Does c# have its own class library?
Explain the difference between abstract class and interface in .net?