This is a discussion on problem with double array assignment with a single type within the C Programming forums, part of the General Programming Boards category; Originally Posted by itCbitC I see how it can be misconstrued; ofcourse the OP can simply use a pointer and ...
This is a late response but thanks to all your responses.
I used a loop, since there are only 15 items.
But I wanted to code correctly,(considering the case of having 999999999999 items).
You need to use dynamic memory management - ie malloc and free. And keep track of the size so you can resize it and know how many times to iterate.