Im kind of new to C, and I have a question about dynamically allocating arrays.
I created an array, int array[n], but this array cant be bigger than 10, so the user will have to enters a number less than 10, so the array is a fixed size. It also warns the user if he entered n > 10.
But now i want to ask for the size of the array n from the user and dynamically allocate memory for that size of array And by dynamically allocating the array, so there will be no need to warn about size limits.
I think it's similar to previous part, do i just create the array like " new array[n]"?