I would like to write function that takes the input from the user and stores it in an array. my problem is that i do not know how long the input is going to be. i read up on dynamic arrays and pointers but got very confused.
e.g. if the user enter 123456, i would like to store that in an array of integer type that has 6 elements.
i.e int myArray[6]= {1,2,3,4,5,6};
do not know how to start so please excuse my not proving a sample of what i have done.