Search:

Type: Posts; User: c99tutorial

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,549

    Your array as defined has only integers (the...

    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
    ...
  2. Replies
    6
    Views
    2,549

    Two things to be aware of: 1. When a 2d-array is...

    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...
Results 1 to 2 of 2