can we do this ??
1.) int arr[20] = {};
i mean the array i said is of 20 int, but i made it empty
2.) int arr1[20];
int arr2[5] = {1,2,3,4,5}
arr1 = arr5;
will the arr1 get equal to 5?
3.) if i make a map and mapped the frequency of every integer
is there any command in c++ to know which has the highest frequency or i will have to loop over and do
int highest = INT_MIN;
while (it != map.end()) {
if (it->second > highest) highest = it->second;
}
and now i will get the highest frequency integer stored in variable highest