Hi All,
Help me in C# datatype with example.
Thanks & Regards
puru
Data Types in C#
Static variables
Variable of instance
Array's elements
Parameters given by reference
Parameters given by value
Returned values
Local variables.
Static variables
Static Variables will be alive throughout the life of a program. It can be declared using static modifier.
Variable of instance
An Instance variable is a variable declared without static modifier. Usually it is declared inside a class or structure definition.
Example
public static void Addition(int a, int b)
{
Console.WriteLine("The sum of elements {0} and {1} is {2}",a,b,a + b);
}
Read This Article