SyntaxFix
Write A Post
Hire A Developer
Questions
You can have a counter (freePosition), which will track the next free place in an array of size n.