I'm trying to count how many times a number appears in an array. Basically you have something like this:
Now I need to count how many times a number appears in that array. I.e. 355 would make three = 1 and five = 2. So I need to break down these numbers into chars or something where I can count each one. Can anyone tell me how to do this?Code:int array[3][3] ={ {'23', '31', '2349'}, {'7567', '1', '84'}, {'355', '75', '12 '}}; int three = 0; int five = 0;