Arrays and Pointers to Arrays

Discussion in 'C Programming' started by kelvSYC, Sep 26, 2003.

  1. kelvSYC

    kelvSYC Guest

    What's the difference between arrays and pointers to arrays, in terms
    of passing them as parameters to a function?

    --
    I am only a mirage.
    kelvSYC, Sep 26, 2003
    #1
    1. Advertising

  2. kelvSYC

    Mike Wahler Guest

    "kelvSYC" <> wrote in message
    news:250920032214134485%...
    > What's the difference between arrays and pointers to arrays, in terms
    > of passing them as parameters to a function?


    Arrays cannot be passed to or returned from functions.
    Pointers to them (or to one of their elements) can.

    -Mike
    Mike Wahler, Sep 26, 2003
    #2
    1. Advertising

  3. kelvSYC

    Mac Guest

    Mac, Sep 26, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roger Leigh
    Replies:
    8
    Views:
    415
    Karl Heinz Buchegger
    Nov 17, 2003
  2. Replies:
    1
    Views:
    633
    -berlin.de
    Mar 28, 2005
  3. Philipp
    Replies:
    21
    Views:
    1,105
    Philipp
    Jan 20, 2009
  4. Francesco
    Replies:
    2
    Views:
    1,083
    Francesco
    Nov 6, 2009
  5. cerr

    pointers, pointers, pointers...

    cerr, Apr 7, 2011, in forum: C Programming
    Replies:
    12
    Views:
    653
Loading...

Share This Page