Data Types and Variables

 

A data type specifies whether or not a variable can store a number, a single character or text. Variables are names given to the memory location for storing data. Data Types are used to specify the types of values related to variables.

Seven commonly used data types :
Data Type Use
string To store string
int To store integer values
float To store floating point values
double To store large floating point values
char To store a single character
bool To store the values "true" or "false"
long To store large integer values

There are many powerful data types but we the little programmers don't need them :D

Post a Comment

Note: Only a member of this blog may post a comment.