Why we use keyword “const” in C#.
Answer:
“Const” keyword is used for making an entity constant.
Example: const string _name = “techstudy”; Once we define a variable as a const then we can’t reassign the value of that variable(string _name).
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Answer:
“Const” keyword is used for making an entity constant.
Example: const string _name = “techstudy”; Once we define a variable as a const then we can’t reassign the value of that variable(string _name).
need an explanation for this answer? contact us directly to get an explanation for this answer