arr[sizeof(arr)/sizeof(arr[0]) + 1] = 12345
If you do that then it will find the length and add 1 to it, so it is always the next in the sequence! :)
PS: this is my first answer on stack overflow yay