Asp.Net C# Variable

in this chapter we will discuss about Asp.Net C# Variable so how to define and how to Initialize variable.

Type Example
Integral types sbyte, byte, short, ushort, int, uint, long, ulong, and char
Floating point types float and double
Decimal types decimal
Boolean types true or false values, as assigned
Nullable types Nullable data types

Defining Variables

int i, j, k;
char c, ch;
float f, salary;
double d;

Initializing Variables

int a, b,c;
a = 5;
b = 9;
c = a + b;
Response.Write(c);