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

▼ Show 1 Answer

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

Eg: const string _name = "Test";
Learn More with Madanswer

Related questions

0 votes
asked Oct 18, 2019 in C Sharp by Robin