How to pass an array of pointers to a function?

This is a discussion on How to pass an array of pointers to a function? within the C Programming forums, part of the General Programming Boards category; Hi guys, Does my main look alright? int main(void) { /* Local Defintions */ int OrgAry[SIZE]; int* AscAry[SIZE]; /* Statements ...

  1. #1
    Unregistered
    Guest

    Question How to pass an array of pointers to a function?

    Hi guys,
    Does my main look alright?
    int main(void)
    {
    /* Local Defintions */
    int OrgAry[SIZE];
    int* AscAry[SIZE];

    /* Statements */
    getData(OrgAry);
    AscSort(OrgAry, AscAry);
    printAry(OrgAry, AscAry);
    }

    AscAry is an arry of pointers. OrgAry is an array of integers.
    Thanks.
    A

  2. #2
    Unregistered
    Guest
    Get together with aspand. He seems to have same project.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting number
    By Leslie in forum C Programming
    Replies: 8
    Last Post: 05-20-2009, 05:23 AM
  2. Passing a 2d Array of pointers to a Function
    By miclus in forum C Programming
    Replies: 6
    Last Post: 09-11-2004, 08:34 AM
  3. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 01:18 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM
  5. Array of function pointers?
    By The V. in forum C++ Programming
    Replies: 3
    Last Post: 10-16-2001, 09:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21