Skip to main content
The 2024 Developer Survey results are live! See the results
Lundin's user avatar
Lundin's user avatar
Lundin's user avatar
Lundin
  • Member for 13 years, 6 months
  • Last seen this week
  • Stockholm, Sverige
142 votes
5 answers
49k views

Implicit type promotion rules

121 votes
7 answers
6k views

Redefining NULL

104 votes
3 answers
16k views

Correctly allocating multi-dimensional arrays

68 votes
5 answers
14k views

Crash or 'segmentation fault' when data is copied/scanned/read to an uninitialized pointer

60 votes
4 answers
8k views

How to create type safe enums?

59 votes
4 answers
23k views

Why is the maximum size of an array "too large"?

55 votes
6 answers
6k views

What's the meaning of "reserved for any use"?

36 votes
2 answers
3k views

Why isn't the keyword false an integer constant expression in gcc C23?

20 votes
2 answers
2k views

What is the meaning of "producing negative zeroes" in a system that doesn't support it?

20 votes
1 answer
6k views

Dynamic memory access only works inside function

19 votes
0 answers
332 views

realloc(ptr, 0) in C23 - now what?

18 votes
3 answers
3k views

Const correctness for array pointers?

16 votes
2 answers
9k views

Is this a valid way of checking if a variadic macro argument list is empty?

16 votes
1 answer
1k views

What is C11 cor 1:2012?

16 votes
4 answers
3k views

How should character arrays be used as strings?

15 votes
1 answer
5k views

"Pointer from integer/integer from pointer without a cast" issues

13 votes
3 answers
2k views

Why can I use gets() in gcc -std=c11?

10 votes
2 answers
281 views

Does nullptr_t break type punning or pointer conversions?

10 votes
1 answer
326 views

clang 15 miscompiles code accessing indeterminate values

9 votes
1 answer
1k views

clang 14.0.0 floating point optimizations

9 votes
1 answer
350 views

Is it well-defined to use memset on a dynamic bool array?

8 votes
1 answer
381 views

_Bool type and strict aliasing

8 votes
3 answers
449 views

Inconsistent gcc diagnostic for string initialization

8 votes
3 answers
314 views

Non-conforming optimizations of volatile in gcc 11.1

7 votes
1 answer
318 views

What is clang trying to do optimizing this simple recursive algorithm?

7 votes
1 answer
435 views

Why are const qualified variables accepted as initializers on gcc?

7 votes
1 answer
201 views

Why doesn't gcc 13 display the correct binary represenation?

7 votes
3 answers
475 views

Reading an indeterminate value invokes UB? [duplicate]

7 votes
2 answers
169 views

Does giving data an effective type count as a side-effect?

7 votes
1 answer
1k views

Do pointers support "array style indexing"?