Presently i am using a function pointer array. But i need to extend it as an array of array of function pointers.The pseudo code is as below:
#include<stdio.h>
int AnalogValue1( int a)
{
printf("\nF: AV1 %d", a);
return 1;
}
int AnalogValue2( int a)
{
printf("\nF: AV2 %d", a);
return 1;
}
int BinaryValue1( int a)
{
printf("\nF: BV1 %d", a);
return 1;
}
int BinaryValue2( int a)
{
printf("\nF: BV2 %d", a);
return 1;
}
int ( *Read_AV_Props[] )(int a)
=
{
&AnalogValue1,
&AnalogValue2,
};
int ( *Read_BV_Props[] )(int a) =
{
&BinaryValue1,
&BinaryValue2
};
void main()
{
Read_AV_Props[0](55);
//*(Read_Ob_Props[0])(20);
}
Here need one array of array of function pointers so that it can take the address of Read_BV_Props and Read_AV_Props. And from the main code i can call that array of array of function pointers. Is this possible in C?