adspace
What is the difference between a variable and a literal?
Answer Posted / Manoj Kumar Raman
In C#, a variable is a named memory location where you can store data and change its value during runtime. A literal is a specific value of a data type that is directly assigned to a variable or used in an expression at compile time, such as 5, "Hello", true.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers