Posts

Showing posts from January, 2018

Data Types

Today I have learn't about different data types which are used in computer programming. There are many data types that are used in different situation when storing data. For example one of them is a Boolean which have a memory size of 1 bit and it doesn't take too much of storage as it is a statement, True or False. It is the smallest data type that can be chosen to use, however it is mostly used to check the state of something. Next data type is an Integer which has a memory size of 2 Bytes (sometimes 4). The integer could be used when storing how many lives someone has in a game. The integer stores positive or negative whole numbers, when using an integer you have to make sure there are no decimal points involve in your data that you're going to store. For example, numbers -33,485 to 33,487 = 2 bytes Next data type is a Real which is a float or double. This data memory size could be the same as an integer, however mostly it has the biggest memory size out of all data ty...