Thread: How to pass an array of pointers to a function?

  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, 04: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, 07: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, 05:06 PM
  5. Array of function pointers?
    By The V. in forum C++ Programming
    Replies: 3
    Last Post: 10-16-2001, 08:37 PM