Categories

Oct 18, 2019 in C Sharp (C#)

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

1 Answer

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

Eg: const string _name = "Test";
Click here to read more about C Sharp
Click here to read more about Insurance

Related questions

Madanswer
Oct 18, 2019 in C Sharp (C#)
Oct 18, 2019 in C Sharp (C#)
May 4 in Image processing
...