4 ms·
Obviously, the OP was talking about function parameters, where "int x[1000]" is semantically equivalent to "int *x", see C11, 6.9.1, item 10: http://www.iso-98
by the_why_of_y 10y ago
Obviously, the OP was talking about function parameters, where "int x[1000]" is semantically equivalent to "int *x", see C11, 6.9.1, item 10:
http://www.iso-9899.info/n1570.html#6.9.1 http://www.iso-9899.info/n1570.html#6.9.1
- saynsedit 10y agoIt's not obvious what he was talking about. In context he was responding to this comment: "While I know that C compilers are really conservative about this, doesn’t it matter as to how x and y are declared? After all if they are dclared as: int x[1000], y[1000];" Those array declarations aren't function argument declarations (except in pre-C89), so not sure why he would talk about semantic equivalence in response to that if it only applies to function arguments.