Question:

Why to use keyword “const” in C#? Give an example.

Answer:

“Const” keyword is used for making an entity constant. We can’t reassign the value to constant.

Eg: const string _name = "Test";

Keywords:

© 2017 QuizBucket.org