Viewing profile — danoman
danoman
HN member- Joined
- Tue, Nov 29, 2022, 7:59 AM UTC
- HN karma
- 3
- Public activity
- 3 items
- HN profile
- View on Hacker News ↗
About danoman
No profile information was provided.
Recent public activity
- comment
-
comment
Comment #33785020
Return pointer to array of 4 integers: int32_t (* bar(void))[4] { static int32_t u[4] = {1, 0, 1, 0}; return &u; } Return a pointer to a function taking a char: void f(char a) { //…
-
comment
Comment #33784847
Beware of struct padding. sizeof(b.arr) != sizeof(b) Consider: #include #include typedef struct Array Array; struct Array { int32_t data[8]; }; void foo(Array const* arr) { size_t …