Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kbp
on Dec 2, 2016
|
parent
|
context
|
favorite
| on:
Let’s Stop Bashing C
> One more thing; The article should have mentioned "pointer increment" which has nothing to do with "+= 1".
What do you mean? ++ptr is perfectly equivalent to ptr += 1, for any pointer type.
chelahmy
on Dec 2, 2016
[–]
I read it as integer arithmetic. It is semantically different from pointer arithmetic.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
What do you mean? ++ptr is perfectly equivalent to ptr += 1, for any pointer type.