@[email protected] to Programmer [email protected] • 10 months agoWhitespaceprogramming.devimagemessage-square51fedilinkarrow-up1295arrow-down110
arrow-up1285arrow-down1imageWhitespaceprogramming.dev@[email protected] to Programmer [email protected] • 10 months agomessage-square51fedilink
minus-square@[email protected]linkfedilinkEnglish3•10 months agoI think you’ve got it backwards. I learned to read pointer decls from right-to-left, so const int * is a (mutable) pointer to an int which is const while int *const is a const pointer to a (mutable) int.
minus-squareTraister101linkfedilink2•10 months agoFuck me man that’s what I get for writing that just before bed
I think you’ve got it backwards. I learned to read pointer decls from right-to-left, so
const int *
is a (mutable) pointer to an int which is const whileint *const
is a const pointer to a (mutable) int.Fuck me man that’s what I get for writing that just before bed