If you want to modify a pointer to pointer you need to pass a pointer to pointer to pointer.

I am lost.

all 10 comments

sorted by: hot top controversial new old
[–] 20 points 8 months ago (1 child)

In C, if you want to let a function change a variable (let's call it x), you need to pass it a pointer to x.

If x is a pointer to a pointer (**), in order to let a function edit x, you need to pass it to a pointer to x (in that case, a pointer to a pointer to a pointer ***).

  • source
  • hideshow 1 child comment
  • [–] 18 points 8 months ago
    [–] 15 points 8 months ago (1 child)

    Only real Three Star Programmers can handle this amount of indirection

  • source
  • hideshow 1 child comment
  • [–] 13 points 8 months ago
    [–] 2 points 8 months ago*

    Imagine the innermost is function pointer.

  • source
  • [–] 2 points 8 months ago

    Are you? This is plain and simple C.

  • source
  • [–] 1 point 8 months ago*

    Villain flashback backstory for the Rust movie.

  • source
  • [–] 1 point 8 months ago

    Statements dreamed up by the utterly deranged.

  • source