how to find even and odd elements in an array in C