Tuesday 3 June 2014

DAta Types definition and details

Data Types:
A data type in a programming language is a set of data with values having predefined characteristics. Examples of data types are: integer(0-9), floating point unit number(0.0 - 9.0), character(A-Z and a-z), string(combination of alphabets and numbers example address). Usually, a limited number of such data types come built into a language. The language usually specifies the range of values for a given data type, how the values are processed by the computer, and how they are stored.

examples of data types:
integer: your roll number or id card number(123 or 423011234567 etc)
float: population or average count(89.45% or 42,000,11122.34848)
string: flatno123 road abc city country900
character: 'a' or 'z'
 NOTE: character is single alphabet not cluster or combination of alphabets if combination occurs then it will be considered as string.