I am new to C programming and I have an assignment that I am not even sure where to start.
This is what I have to do: Take a List of integers and sort them into odds and evens putting the even integers to the back of the list in the order in which the occurred. And we have to return the number of even integers in the List[]
For example:
suppose the array list is initialized with Size set to 10:
int List[Size] = {13, 31, 24, 16, 3, 48, 21, 11, 39, 6};
Then a call to evensToBack() should result in
Index: 0 1 2 3 4 5 6 7 8 9
Value: 13 31 3 21 11 39 24 16 48 6 And the Value 4 being returned.
All with that all I am given is this starting piece of code:
`int evensToBack(int* const List, const int Size){
//body
}`
Please help explain to me how to get started here. I would greatly appreciate it.