Below is the code I have, which is clearly wrong, but hopefully it makes it clear as to what I want to achieve. If someone could please correct my code or point me in the right direction it would be greatly appreciated.
Thank you.
Expand|Select|Wrap|Line Numbers
- int main(void)
- {
- int ticket[25][6];
- /* ... */
- /* Fill array with zeros */
- init_ticket(ticket);
- /* ... */
- }
- void init_ticket(int ticket)
- {
- int col;
- int row;
- for (row = 0; row < 25; row++)
- {
- for (col = 0; col < 6; col++)
- {
- ticket[row][col] = 0;
- }
- }
- }