ANISC

WHAT IS MEAN BY ARRAY?
Last edited on
An array is a dimensional "string" of values.

char word[10];
int age[6];
double plot_data[25];
float matrix[3][3];

Are all arrays. word is an array of 10 characters, age is an array of 6 integers and plot_data is an array of 25 double precision floating point numbers and matrix is a 3x3 2D array of single precision floating point values.
Last edited on
do NOT use caps!!
char word[10];

word is now a pointer to 10 chars. pointer[0] will return the value of the first char, pointer[1] will return the value of the second char, etc.

This method of referencing consecutive values of the same type is known as an array.
Topic archived. No new replies allowed.