News
Newest
Ask
Show
Jobs
Open on GitHub
What's the difference between an integer and a pointer?
(blog.regehr.org)
29 points | by
germanrabbit
2 days ago
6 comments
glitchc
2 minutes ago
I don't think GCC is doing something special, rather that -O3 might be optimizing out the subtraction. Try with -O0, I suspect you will get the same result as clang.
pjmlp
38 minutes ago
2018, and some of the comments are already outdated, SPARK 2014 is out there with ownership model.
bryanlarsen
10 minutes ago
Pointers have provenance, integers don't.
hn_submit
18 minutes ago
Context.
stronglikedan
2 minutes ago
well, their names, for starters...
spwa4
6 minutes ago
There is no difference.
Yes, I'm a C programmer, how did you know?
[-]
drfloyd51
2 minutes ago
You should read TFA.
Yes, I'm a C programmer, how did you know?