What is the difference between “constant” and “readonly” variables in c#?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Sharp Interview Questions

i have a question which is quite simple but yet complicated for me my question is why do we use void, if it does not return anything to the compiler? if it is used for normal display it can also be done by what is called Console.Write() or Consol.WriteLine() and if i do not use void with my method then my compiler throws me an error. if i return a value say integer then i write public int fun() display of the result can also be done here then why is it so necessary to use void with a function and why so compiler throw us an error if v don't use void return type?

2 Answers  


What does console readkey do in c#?

0 Answers  


How is exception handling implemented in c#?

0 Answers  


What do you mean by “finalize” and “finally” methods in c#?

0 Answers  


Can an abstract class have a constructor c#?

0 Answers  


In c# how to connect crystal report?

2 Answers  


difference between managed code and unmanaged code ?

3 Answers  


Is collection a data structure?

0 Answers  


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

0 Answers  


Why do we use reflection in c#?

0 Answers  


Why generics are used?

0 Answers  


What are Generics?

5 Answers   TCS,


Categories