What is the difference between a variable and a literal?
Answer / 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 |
Can you prevent your class from being inherited and becoming a base class for some other classes?
What's difference about switch statements in C# ?
What is the use of private constructor in c#?
What is the difference between field and variable in c#?
What is a streamwriter in c#?
Why we use extension methods in c#?
In dynamic link library, which api is used for load library?
What is difference between mutable and immutable in c#?
What is raise event and what is its use?
What is console application with example?
Differentiate between object pooling and connection pooling in c#?
What is variable in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)