ABSTRACT

Variables store the data, and the operations are made by using operators. A data type is a classification of data that tells the compiler or interpreter how the programmer intends to use the data. The value data types are integer-based and floating-point based. C# language supports both signed and unsigned literals. There are two types of value data type in C# language: predefined data types and user-defined data types. Operators are the basic foundation of any programming language. Instance variables or non-static variables are the ones announced in a class yet kept outside any method, constructor, or block. Static variables or class variables are the ones specifically announced with the static modifier. Data types in C# have two distinct flavors: value types and reference types. Logical operators are used for performing logical operations. Logical operators work with Boolean expressions and return a Boolean value. Logical operators are used with the conditional operators in loops and decision-making statements.