Y
Hacker News
new
|
ask
|
show
|
jobs
by
Spivak
2257 days ago
But I don't know what you want to happen in this case? If you actually call f(2,0) then the program makes no sense. How can you have an expected value for a function call that violates its preconditions?
1 comments
userbinator
2257 days ago
Based on the memory layout of arrays, which AFAIK is defined rather strictly by the standard, a[0][2] will be the same as a[1][0].
link