News
Newest
Ask
Show
Jobs
Open on GitHub
What's the difference between an integer and a pointer?
(blog.regehr.org)
27 points | by
germanrabbit
2 days ago
6 comments
glitchc
0 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.
bryanlarsen
9 minutes ago
Pointers have provenance, integers don't.
pjmlp
36 minutes ago
2018, and some of the comments are already outdated, SPARK 2014 is out there with ownership model.
hn_submit
17 minutes ago
Context.
stronglikedan
1 minute ago
[delayed]
spwa4
5 minutes ago
There is no difference.
Yes, I'm a C programmer, how did you know?
[-]
drfloyd51
1 minute ago
You should read TFA.
Yes, I'm a C programmer, how did you know?