complex arguments for function

Posted by myPost1 on Stack Overflow See other posts from Stack Overflow or by myPost1
Published on 2010-04-26T21:31:09Z Indexed on 2010/04/26 21:33 UTC
Read the original article Hit count: 217

My task is to create function funCall taking four arguments :

  • pointer for 2d array of ints that stores pairs of numbers
  • variable int maintaining number of numbers in 2d array
  • pointer for table of pointers to functions
  • int variable storing info about number of pointers to functions

I was thinking about something like this :

typedef int(*funPtr)(int, int);
funPtr arrayOfFuncPtrs[];

void funCall( *int[][]k, int a, *funPtr z, int b);
{
}

© Stack Overflow or respective owner

Related posts about c++

Related posts about pointers