I have been trying to write a program of c++ of function of array for summation of odd numbers could I please get help on how to do it?

First question would be: "What is an odd number?"
Could you write a function that returns a boolean, telling if the inputted number is odd or not?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.