Wednesday, 18 September 2013

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 TypeUse
stringTo store string
intTo store integer values
floatTo store floating point values
doubleTo store large floating point values
charTo store a single character
boolTo store the values "true" or "false"
longTo store large integer values

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

No comments:

Post a Comment