Login
Remember
Register
Ask a Question
Why to use keyword “const” in C#? Give an example.
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
Why to use keyword “const” in C#? Give an example.
const-in-c#
c#-in-const
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
“Const” keyword is used for making an entity constant. We can’t reassign the value to constant.
Eg: const string _name = "Test";
...