Wednesday, February 16, 2011

Declare a C/C++ function returning pointer to array of integer pointers..


Give definition for a function with argument of int* which returns pointer to an array of integer pointers.

7 comments:

  1. *int*[] funName(int* ptr)

    is it ok???

    ReplyDelete
  2. 1. We need, a function with argument int *,

    function(int *)
    2. a function with argument int *, returning pointer to

    (*function(int *))
    3. a function with argument int *, returning pointer to array of 4

    (*function(int *))[4]
    4. a function with argument int *, returning pointer to array of 4 integer pointers

    int *(*function(int *))[4];

    ReplyDelete