Friday, January 24, 2014

3.1.1 The purpose of data types within code

Data can be stored in different forms.
 A PC uses different type of internal codes to store the different of types of data being processed currently.
Programming languages uses different types of data so that it can use us the space it has available more efficiently. for example strings(32 bit) take up more room then char(8 bit) thus making char the more efficient data type to use.
Also the less bits a data type has the more faster it is. although on some data types the more bits it has it makes the data type more accurate.
Less bits = faster but less accurate
More bits = slow but accurate
The data types determine what functions can be done.
 For example: the use of numbers.
Here are a list of data types and how many bits it contains.

Useful webpages :http://en.wikipedia.org/wiki/Data_type

No comments:

Post a Comment