I want the code like this.. the "&&&&&" should be solved by you.. i mean the &&&&& should be replaced by the answer.... (in the method fun(), the formal parameter should be a pointer to the actual argument that is passed)
void fun( &&&&& )
{
using the 2-D array for a specified function..
}
void generate( )
{
int p[3][2] = { { 1,2 } , { 3,4 } , { 5,6 } };
int q[3][1] = { { 1 } , { 2 } , { 3 } };
int r[3][3] = { { 1,2,3 } , { 3,4,5 } , { 5,6,7 } };
/* Some statements... */
fun(p);
/* Some statements... */
fun(q);
/* Some statements... */
fun(r);
/* Some statements... */
}
void main( )
{
generate( );
}