You are viewing a single comment's thread. Return to all comments →
There is nothing wrong with this code. The best way you can write is by allocating the size of the array during the run time. The user may need a length that is beyond 100 and in that case, this code ceases to work.
Thanks, I hope it would work