If you want to modify a pointer to pointer you need to pass a pointer to pointer to pointer.
I am lost.
Submitted 3 weeks ago by user224@lemmy.sdf.org to [deleted]
https://files.catbox.moe/w4oa7c.png
If you want to modify a pointer to pointer you need to pass a pointer to pointer to pointer.
I am lost.
Only real Three Star Programmers can handle this amount of indirection
I love how “Three-Star Programmer” is a perjurative term in C/C++ circles.
yo dawg
Why did I get slightly aroused by this?
Implementing all OOP concepts is easy in C. Just gotta modify a pointer to a function pointer.
Statements dreamed up by the utterly deranged.
Are you? This is plain and simple C.
Villain flashback backstory for Rust.
robotica@lemmy.world 3 weeks ago
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 ***).
Mac@mander.xyz 2 weeks ago
This reminds me of the “and and and and and and and” sentences. lol