little portion of the code you have written just checks for the numbers to be between 0-9
It check that all elements are in range 0..9 and counst how often they are encountered. YOu just have to LOOK in digitsCount array and see if any digit count is larger than 1. That is all. I don't know how to make it clearer.
What i dont understand is that we are just returning a false
It is a early return. Like when you asked to check if everything is fine at home and you see a burning building, you are not going to check everything: it is obvious that it is WRONG.
Actual return part is what you need to write.
Would it be similar to this at all?
Yes. Second part is prety much is what you need to write.
Yes I have noticed but can you please breakdown whats going on. As stated before your portion of the code checks to see if the numbers are between 0-9. Then this second part checking to see if any number is greater than 1?
Thank you for the breakdown really appreciate it. So calling this function in my int main would I have to set a constant int length and call the function by its name. This is what I have trouble with. I did an earlier program containing a type double and when testing. I just had to call the function by its name directly and it was that simple but for bool functions I believe its a bit different.