Question
C++ Write functions to do the following. Do not change the function signature. Please write the functions, using the given function signature and specifications. Write
C++ Write functions to do the following. Do not change the function signature. Please write the functions, using the given function signature and specifications. Write a function that takes as a parameter an integer, and returns the number of odd, even and zero digits. This should be a void function since a function cannot return 3 values. Here is your function signature: void numberCount(int number, int &oddCount, int &evenCount, int &zeroCount); So, if the user enters 34873045, the number of odd digits is 4, even digits is 3, and zeros is 1. You must use integers, do not use strings.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started