Search:

Type: Posts; User: anon

Search: Search took 0.04 seconds.

  1. Replies
    10
    Views
    4,724

    It's just the same as with normal variables. If...

    It's just the same as with normal variables. If you want the function to modify them so that the modifications are visible to the caller you pass a pointer to the variable.

    With the pointers you...
  2. Replies
    10
    Views
    4,724

    What happens is that realloc may move the memory...

    What happens is that realloc may move the memory contents to some other place in memory but main won't know that. If this happens the pointer in main becomes a wild or dangling pointer.

    The...
Results 1 to 2 of 2