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


Please Help Members By Posting Answers For Below Questions

How to assign Null value to Var?

1066


What is expression tree in c#?

999


Why can't we use a static class instead of singleton?

956


How do you inherit a class into other class in c#?

996


What is an abstract class c#?

970


Which namespaces are necessary to create a localized application?

1143