#include <iostream>
usingnamespace std;
int fun_name (int * arr)
{
for (int i = 0;i< ??? ;i++) // how to compare while i don't know the size of array!!
}
int main ()
{int **arr;
arr = newint* [a];
for(int z = 0;z<a;z++)
{
arr[z] = newint [b];
}
for(int x = 0; x<a; x++)
{
for (int y = 0; y<b; y++)
{
cout << "Enter value " << endl;
cin >> arr[x][y];
}
}
fun_name(arr);