Re: What is a Variable and Constant in C# ?
If you want to assign the fixed value to a variable, then you can declare it with the const keyword. But one thing you will have to remember that you cannot change the variable across the application's life. Also while doing the Compilation, you must know the value assigned to a constant variable. You will have to declare the variable, before using it. Without declaring you cannot use the variable. To declare a variable you must first choose what data type it is. The variable can be declared according to its type.
I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.
Bookmarks