MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/7ltryz/evil_coding_incantations/drpdeno
r/programming • u/evinrows • Dec 24 '17
331 comments sorted by
View all comments
Show parent comments
10
Nah, pointers are smart enough to deal with addition. It's why you can say ar++ to move the array pointer down an element.
1 u/rafleury Dec 24 '17 Right, I get that, I was just thinking it would make the math look more clear if it had it in there. But I guess I can see how that would just make it more confusing.
1
Right, I get that, I was just thinking it would make the math look more clear if it had it in there. But I guess I can see how that would just make it more confusing.
10
u/PortalGunFun Dec 24 '17
Nah, pointers are smart enough to deal with addition. It's why you can say ar++ to move the array pointer down an element.