SyntaxFix
Write A Post
Hire A Developer
Questions
You can use a variable to count places in the array, so when ever you add a new element, you put it in the right place. For example:
int a = 0; int arr[5] = { }; arr[a] = 6; a++;