By
using one dimensional array I assume you mean that the ten numbers are passed to your function in the array. By the way, C functions can't determine the size of a passed array so it is customary to use two arguments to pass an array: the first is a pointer to the first element of the array; and the second is the number of elements in the array.
For the ten input numbers 1, 2, 3, 4, 5, 6, 7, 8 , 9 , 10 which of the following is the style of printed output you desire?
- 1 is odd
-
2 is even
-
...
-
10 is even
- even numbers: 2, 4, 6, 8, 10
-
odd numbers: 1, 3, 5, 7, 9