New answers tagged c
0
votes
What's the justification for implicitly casting arrays to pointers (in the C language family)?
One of the big motivations behind C (and perhaps the reason it became so ubiquitous) is that it's more or less a portable assembly language. It provides just enough abstraction for your code to work ...
0
votes
Advantages/disavantages of including the comma operator?
I don't know how much the comma operator is used in practice for this, but surely one of the original intended purposes would have been to assign an intermediary variable to avoid repeating common sub-...
19
votes
What's the justification for implicitly casting arrays to pointers (in the C language family)?
The unusual implementation of arrays in C is described in a wonderful document called The Development of the C Language by Dennis Ritchie. (The more widely used URL seems to have been broken by the ...
Top 50 recent answers are included
Related Tags
c × 38language-design × 6
undefined-behavior × 6
c++ × 5
history × 4
arrays × 3
types × 3
math × 3
operators × 2
rust × 2
implementation × 2
optimization × 2
functions × 2
loops × 2
calling-conventions × 2
type-conversion × 2
memory-safety × 2
memory-management × 2
integers × 2
stack × 2
standard-library × 2
constant-expressions × 2
floating-point × 2
rationale × 2
tokens × 1