How to declare a variable in C#
Pls any tell HOW TO DECLARE A VARIABLE IN C#....
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vaikesh K PRank #808 · 2.8K reputationPosted Aug 19, 2015, 2:02 AM EDT
Variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C# has a specific type, which determines the size and layout of the variable's memory the range of values that can be stored within that memory and the set of operations that can be applied to the variable.
The basic value types provided in C# can be categorized as:
C# also allows defining other value types of variable such as enum and reference types of variables such as class.