SyntaxFix
Write A Post
Hire A Developer
Questions
If your array is static or global it's initialized to zero before main() starts. That would be the most efficient option.