Your array as defined has only integers (the number of sales). To keep the other data together you should use a struct rather than array of ints. For example:
ProductEntry
month : string
...
Type: Posts; User: c99tutorial
Your array as defined has only integers (the number of sales). To keep the other data together you should use a struct rather than array of ints. For example:
ProductEntry
month : string
...
Two things to be aware of:
1. When a 2d-array is declared as MyArray[y][x], we say that MyArray has y rows and x columns.
2. C treats a 2d-array as if it is actually a 1d-array where each element...