0% found this document useful (0 votes)
10 views1 page

Data Types

Data is categorized into types such as integers, floating point numbers, characters, strings, and booleans, each requiring different memory sizes and supporting various operations. The document outlines the common data types in programming languages, detailing examples and their respective sizes. Additionally, it notes that data types can vary across different programming languages and are primarily grouped into numbers, characters, or logical types.

Uploaded by

ilyas.sas.kaia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Data Types

Data is categorized into types such as integers, floating point numbers, characters, strings, and booleans, each requiring different memory sizes and supporting various operations. The document outlines the common data types in programming languages, detailing examples and their respective sizes. Additionally, it notes that data types can vary across different programming languages and are primarily grouped into numbers, characters, or logical types.

Uploaded by

ilyas.sas.kaia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Data types

Data is classified into types, such as a set of whole numbers (also known as integers) or a set of
printing characters.

Different types of data are represented in different ways inside a computer and need varying
amounts of memory to store them. They also have different operations that can be performed
upon them. All values that belong to the same data type will be represented in the same way.

The most commonly supported data types in programming languages are:

Data type Example Size

Integer (whole number) 4, 27, 65535 1 to 8 bytes

Floating point (decimal


4.2, 27.4, 5.63 4 to 8 bytes
number)

Character a, F, 3, $, £, # 1 byte

abc, hello Limited to the amount that can be stored in main


String
world memory

Boolean true or false 1 bit

Data types may be different in different languages. The main data types are grouped under
hierarchies. They are either numbers, characters or logical. There are several types of number
values, including a distinction between whole numbers and floating-point numbers.

You might also like