Results 1 to 6 of 6

Thread: Passing function arguments by refrence

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member GamerMax5's Avatar
    Join Date
    Nov 2004
    Location
    United States
    Posts
    388

    Resolved Passing function arguments by refrence

    In C.

    When you declare your function prototypes and you want to pass the argument values by refrence, do you have to use the indirection operator in the argument definition list? I haven't really done work with pointers for a while and I can't remember...

    Also I wanted to know that since the memory address of an array just points to the first address in a contigous segment of addresses for each element, why is it that you can't access the memory addresses for the array elements other than the first one? And if you can, how can you do it?
    Last edited by GamerMax5; Jan 17th, 2006 at 06:16 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width