I'm trying to create a program which asks the user to enter a set of numbers in one line, separated by white space. For example a user would enter 3 4 6 3 1 all at once. How would I do that? I would like to create an array from those sets, but the array size would be specified after the user enters the set of numbers. Should I use pointers?
Update
Since I haven't learn dynamic allocation yet. What I think I should do is enter the numbers and scan the size of it and create the array of that size