Data Type: A data type is specifies whether a variable can store a number, a single character or text.
Variables are names given to the memory location for string data. Data Types are used to some commonly use data types in C# are:
Data Type Use
int For storing integer values
long Storing large integer values
float storing floating point values
double storing large floating point values
char storing a single character
string storing a string
bool storing the values 'true' or 'false'
Examples:
int salary;
int number1,number2;
string name;
int age;
No comments:
Post a Comment