2
Answers

Use of const keyword in C#

Photo of Shazma Batool

Shazma Batool

3y
768
1

Why we can only use const keyword with primitive type in C# and cannot be used with user-defined types? Moreover, what is the concept that const are static by-default?

Answers (2)