Re: Output of the printf(a,*a,**a) where a is of type int [][][]
CBFalconer wrote:
> Bartc wrote:
>> [The 'rule'] "It falls out from a key fact: C does not have array
>> values"
>
> Except that is wrong. However, C doesn't pass array values.
6.3.2.1
Except when it is the operand of the sizeof operator, the unary & operator, the ++
operator, the -- operator, or the left operand of the . operator or an assignment operator,
an lvalue that does not have array type is converted to the value stored in the designated
object (and is no longer an lvalue).
This cannot happen with arrays. (Well, here "value" is what some people
call a rvalue, but the standard does also define what the "value of a
string" is.)
--
Army1987 (Replace "NOSPAM" with "email")
|