I am new to this world
I want to make a simple program that will compare the contents of a 2d array. Let's say array[a][b] have some integers in it. All I want to do is to make a simple program that will read the contents of array compare them and each time an integer in that array is repeated add one to that number.
Maybe this example might help:
Let's say i have c=array[a][b] and that I end up for a  array with
Now i want to be able to check this and say that in that array i have 3 zero's and one 1.
I have been trying to make somthing like this work but could not achieve it
All I got through was to read the contents of the array but not to compare it.
Any ideas of what i should do ?