What are the one-dimensional arrangements for?
int Temp[12];
What are the one-dimensional arrangements for?
int Temp[12];
What are the one-dimensional arrangements for?
What they serve for will depend on the use they are given. Because of their characteristics, they can be useful in different contexts.
In the one-dimensional Arrays we can access any element of this without having to consult previous or subsequent elements, this by using an index for each element of the array that gives us its relative position.
int miarreglo[10]
for(int i=0;i<10;i++)
miarreglo[i]=i*10;
cout<<miarreglo[5]; //50