Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Kasundra Navneet
Enroll. No.:- 130170119013
Branch:- Mechanical
Division:- E
Mobile No.:- 8690239123
Email:- navneetkasundra@gmail.com
1
Arrays
Array
10
20
30
ACTUAL VALUES
2 in this example.
a
INDEX
10
20
30
NAME OF ARRAY
ACTUAL VALUES
of an array:
Considering 16-bit compiler
Total bytes= sizeof(base type)*size of array.
= Sizeof(int)*3
= 6 bytes (in this example).
C/C++ has no bounds checking on arrays.
If you exceed array boundary, you may write into
some other variables data or even into the
program code.
10
function.
void display ( int m )
{
printf(%d\n, m);
}
12
13