Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Spivak
on April 14, 2020
|
parent
|
context
|
favorite
| on:
Tell HN: C Experts Panel – Ask us anything about C
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?
userbinator
on April 14, 2020
[–]
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].
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: