Hi guys,
I'm not sure how to enter new entries into an array that is full.
scanf() allows us to input a number.
array[i] allows us to put the number into the array
The problem with int array[x] is that you have to define the number of values in the array.
What I'm hoping for is to input a new number and place it at the end to make it an array
with size x+1.
So the user increases the number of values as they enter successive values.
I've had a look at dynamic arrays and it has something to do with malloc or realloc.
But I don't really understand it.
I'm hoping someone could lend a hand and explain it for me.
Thank you heaps! (in advance)
~SB