Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
je-so
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
je-so
11y ago
Personal space is a natural right! Even animals has this right except farm animals.
2.
▲
by
je-so
11y ago
If you know that sizeof(float) >= sizeof(int) the memory alignment should be fine. Also in this case * (int* )&a does not access any bytes outside of an defined data object. To predict the outcome one have to know the representation
3.
▲
by
je-so
12y ago
Another interesting thing to know about pointer and arrays is: #include <stdio.h> typedef int a_t[100]; int main(void) { int a[100]; a_t* p = &a; // all printed pointer values are equal p
4.
▲
by
je-so
12y ago
(See http://pastebin.com/KypbginU ) // corrected overflow hget for (int k2=k,o=0; t[k&(SIZE-1)] && **t[k&(SIZE-1)] != k2 && o<SIZE; ++k,++o); return t+(k&(SIZE-1)); /&