Module 2 - Data Structures
Module 2 - Data Structures
Module 2
Terminologies
Data Types:
Refer to the different kinds of data that a variable
may hold in a programming languages
Examples:
Integer
Real
Float
Char
String
Data Objects:
Refer to the set of elements
Example: data object integer refers to
D = {0, ±1, ±2, ±3, … }
Where:
UB2 – upper bound of the 2nd dimension
α - base or starting address
esize – element size in bytes
A[i][j][k]= α +[(i)*(UB2)*(UB3)+(j)*(UB3)+
(k)]*esize
Where:
UB3 – upper bound of the 3rd dimension
UB2 – upper bound of the 2nd dimension
α - base or starting address
esize – element size in bytes