I have so many 2D arrays with different name like
const int a[][2]
{
{1,2},
{3,4},
};
const int b[][2]
{
{5,6},
{7,8},
};
and so many .... I took the array name in other variable like
int t_huff,f_huff;
t_huff =a;
f_huff =b;
now I want to write a function in which recived the argument(array name) and then use the argument in the switch case
function_name(string name)
{
switch(name)
{
case a:
break;
case b:
break;
}
}
but when I am doing this I got some warning like warning C4047: '=' : 'int' differs in levels of indirection from 'const int (*)[2]'
please help me to remove this warning from my project