Easy and complex
material of the Data Type
What for we use and exist Data type as example:
BYTE, INTEGER,
shortint, REAL, longint, STRING, CHAR, BOOLEAN, WORD.
Well, I hope
you all have understand before the reason of limiter data type but for you still
do’t know. I wish you happy for my this article.
Below is theReason
why need data type:
BYTE: requires
1 byte of memory
INTEGER: requires 2 bytes of memory
SHORINT: requires 1 byte of memory
STRING: requiring how in a message, eg STRING [10] means size 10 Byte
CHAR: only 1 byte
BOOLEAN: only 1 Byte
WORD: 2 Byte
Longint: between 4 to 6 Byte Memory
REAL: between 6-10 bytes
INTEGER: requires 2 bytes of memory
SHORINT: requires 1 byte of memory
STRING: requiring how in a message, eg STRING [10] means size 10 Byte
CHAR: only 1 byte
BOOLEAN: only 1 Byte
WORD: 2 Byte
Longint: between 4 to 6 Byte Memory
REAL: between 6-10 bytes
Then example:
Salary: = 5000000;
1st Test: = 70;
Total Test: = 'C';
if we implemented data type here with this command:
Salary: = 5000000;
1st Test: = 70;
Total Test: = 'C';
if we implemented data type here with this command:
VAR
Salary: longint;
1st Test: longint;
Total Test: String;
it will require as much memory as 5 + 5 + 255 is 265 bytes
Salary: longint;
1st Test: longint;
Total Test: String;
it will require as much memory as 5 + 5 + 255 is 265 bytes
but if we use like
below this command:
VAR
Salary: longint;
1st teast: Byte;
Total test: Char;
it will require as much memory as 5 + 1 + 1 that is 6 bytes
Then, can you
think of Car Pickup carrying 263 sacks of Rice with 6 sacks Car Pickup carrying
rice, which is more fastttttttttttttttttttttttttt Its speed ...
sure, which carries 6 sacks of rice right.
So in conclusion the use of name / data type to help a programmer to create a program to make the program more efficient in need of computer memory and the program will be quickly processed by the computer.
sure, which carries 6 sacks of rice right.
So in conclusion the use of name / data type to help a programmer to create a program to make the program more efficient in need of computer memory and the program will be quickly processed by the computer.
Congratulations for your I implementation, hope it is useful!
chatting with me here
No comments:
Post a Comment