Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Spivak
6y ago
0 comments
Save
Share
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?
0 comments
1 comments · 1 top-level
top
newest
oldest
userbinator
6y 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].
j
/
k
navigate · click thread line to collapse