Timeline for Passing a static array to a function
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 20, 2015 at 14:19 | comment | added | Majenko |
Yep, perfectly fine. for (int i = 0; i < 6; i++) { report.keys[i] = 0; }
|
|
| Oct 20, 2015 at 14:19 | comment | added | 0x2b3bfa0 |
One last question: Is ok to use a for loop to clear the report.keys array?
|
|
| Oct 20, 2015 at 14:15 | comment | added | 0x2b3bfa0 | +35: Really good answer. Your last method is the best for me. | |
| Oct 20, 2015 at 14:13 | vote | accept | 0x2b3bfa0 | ||
| Oct 20, 2015 at 13:26 | history | answered | Majenko | CC BY-SA 3.0 |