I am familiar with basic arrays...
Creates an array named list, that is 50 long.Code:int list[50]
How do I go about coding an array that is the length that the user inputs?
I thought about declaring a variable length, and then doing this:
So when the program would ask, "How long do you wish to make the array?", if the user inputted 27, the array would be 27 long..Code:int list[length];
...but that of course didn't work. Whats the best way to achieve this?
thanks all =)