array Initialization and sub-scripting
Array Initialization and Sub-scripting
- If a is an array, we can write a[expr], where expr is an integral expression, to access an element of the array.
- We call expr a subscript, or index of a.
- The expression a[i]can be made to refer to any element of the array by assignment of an appropriate value to the subscript i.
- eg. a[i+j], a[i-j], a[i+2]

Example: Find the minimum among all the data stored in an array.
1 | #include <stdio.h> |
Output
Please Enter 10 Numbers:
15 5 7 55 -8 17 -11 25 16 9
The Minimum Number is: -11