3 ms·
`const Foo*` and `Foo const*` are exactly the same and just a question of style (east-const vs. west-const) Not to be confused with `Foo *const`
by jenadine 3y ago
`const Foo*` and `Foo const*` are exactly the same and just a question of style (east-const vs. west-const)
Not to be confused with `Foo *const`
- PennRobotics 3y agoFor anyone thinking, "wtf const pointer order??" fall back on the spiral rule: https://c-faq.com/decl/spiral.anderson.html https://c-faq.com/decl/spiral.anderson.html