0

I have a similar program to reun although its a bit different with no histograms or anything and its on c++

Could i ask, where the vlaues in the array size 20 below come from??

int range={0};
int sales[20]=
{ 267, 359, 468, 525, 678, 710, 856, 867, 920, 1067,
254, 987, 1034, 875, 345, 765, 234, 500, 300, 490};
int p[20];

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by twomers
0

As in sales[20] and p[20]? It's just the size of the respective arrays. They can hold twenty elements. p is uninitialised but sales is by virtue of ={numbers];.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.