Count even and odd numbers of an array in C++

3Shares