0
Write a program to find the frequency of presence an element in array
3 Answers
0
Create a count var then loop through your arr.
0
I don't understand can you explain more please?
- 1
count = 0
// n is size of your arr
for (int i=0;i<n;i++){
if(a[i] == 4)
count++;
}
Hope it can help!