News for hackers. Stuff that matters.
Re:Tell HN: C Experts Panel – Ask us anything about C by Spivak on Tuesday April 14, 2020 @03:50PM (#22870621)
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?
Re:Tell HN: C Experts Panel – Ask us anything about C by userbinator on Tuesday April 14, 2020 @07:53PM (#22872881)
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].