How do pointer to pointers work in C?

前端 未结 14 1260
渐次进展
渐次进展 2020-11-22 02:03

How do pointers to pointers work in C? When would you use them?

14条回答
  •  [愿得一人]
    2020-11-22 03:07

    A pointer to a pointer is also called a handle. One usage for it is often when an object can be moved in memory or removed. One is often responsible to lock and unlock the usage of the object so it will not be moved when accessing it.

    It's often used in memory restricted environment, ie the Palm OS.

    computer.howstuffworks.com Link>>

    www.flippinbits.com Link>>

提交回复
热议问题