Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c    |    Meh, in C you gotta define EVERYTHING    |    243,242 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 242,246 of 243,242    |
|    James Kuyper to Waldek Hebisch    |
|    Re: What is the meaning of array paramet    |
|    29 Nov 25 22:01:36    |
      From: jameskuyper@alumni.caltech.edu              On 2025-11-29 17:28, Waldek Hebisch wrote:       ...       > AFAICS there are two essentially different cases: normal arrays,       > that decay to pointers and VMT-s which preserve information about       > array size.              The term "decay" is often used (though only in one location in the       standard itself) to refer to the consequences of the following rule:              "Except when it is the operand of the sizeof operator, or typeof       operators, or the unary & operator, or is a string literal used to       initialize an array, an expression that has type "array of type" is       converted to an expression with type "pointer to type" that points to       the initial element of the array object ..." (6.3.2.1p3).              This rule applies just as strongly to arrays that have variably modified       type as it does to other arrays.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca