Search:

Type: Posts; User: rags_to_riches

Search: Search took 0.04 seconds.

  1. Replies
    8
    Views
    995

    The function takes pointers as arguments, and you...

    The function takes pointers as arguments, and you pass the address of each variable to the function.

    Note: this means your scanf call variables will also change, because you will be receiving...
  2. Replies
    8
    Views
    995

    It's pass-by-value vs. pass-by-pointer. Here's...

    It's pass-by-value vs. pass-by-pointer.

    Here's a debugging session with comments



    gdb) b 30
    Breakpoint 1 at 0x100000e36: file limits.c, line 30.
    (gdb) run
    Starting program: limits
Results 1 to 2 of 2