Chapter One Introduction
Chapter One Introduction
Scientific Calculations
– Boolean,
– Integer
– characters
Structured Data Types
A structured data type has a definition that imposes structure
upon its values.
In many structured data types, there is an internal structural
relationship, or organization, that holds between the
components.
For example, if we think of an array as a structured type, with
each position in the array being a component, then there is a
structural relationship of `followed by': we say that
component i is followed by component i+1.
Many structured data types do have an internal structural
relationship, and these can be classified according to the
properties of this relationship.
Structured Data types: Linear Structure
The most common organization for components is a
linear structure. A structure is linear if it has these 2
properties:
int big=Numbers[0];
for (i=0;i<5;i++) Big=8 Big=8 Big=22 Big=56 Big=56
{
if(Numbers[i]>big)
big=Numbers[i];
}
Arrays