Page 1 of 1

Using c++, Write and test the function int frequency(int a[],int n,int x, int K); This function counts the number of tim

Posted: Thu May 05, 2022 1:31 pm
by answerhappygod
Using c++,
Write and test the function
int frequency(int a[],int n,int x, int K);
This function counts the number of times the item x appears
among the first n elements of
the array a (of size K) and returns that count as the frequency
of x in a.