You are on page 1of 2

Introduction to programing

Assignment

Submitted By: Muhammad Assam Malik

Reg#: BCS193032

Submitted To: Miss Faiza Qayyum

 Integer:
Integer is a data type. Keyword used for integer data types is
int. Integers typically requires 4 bytes of memory space and ranges from -
2147483648 to 2147483647.

 Character:
Character is a data type. This type is used for storing characters. Keyword used
for character data type is char. Characters typically requires 1 byte of memory
space and ranges from -128 to 127 or 0 to 255.

 Short Integer:
Short integer is a part of Integer data type . Keyword used for short integer
data type is short int. Short Integer typically requires 2 bytes of memory space
and ranges from -32768 to 32767

 Long Integer:
Long integer is a part of Integer data type. Keyword used for long integer data
type is long int. Long Integers typically requires 4 bytes of memory space and
ranges from -2147483648 to 2147483647

1
 Float:
Float is a Data type. It is a fundamental data type built into the compiler that is
used to define numeric values with floating decimal points. C, C++, C# and
many other programming languages recognize float as a data type. Other
common data types include int and double. Float data type typically requires 4
bytes of memory space and ranges from +/- 3.4e +/- 38 (~7 digits)

You might also like