Skip to main content

New answers tagged

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 ...
bta's user avatar
  • 171
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-...
Steve's user avatar
  • 778
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 ...
IMSoP's user avatar
  • 2,667

Top 50 recent answers are included