OT:programovani v C

Miroslav Šinko sinkomiro@gmail.com
Úterý Červen 16 10:14:38 CEST 2009


2009/6/16 Jan Waclawek <konfera@efton.sk>:
> To, ze ak sa pouzije ten isty typedef ako parameter tak uz je to "skutocny" pointer, je akasi vynimka z vynimky, a je popisana v poznamke 85 kapitoly 6.5.3.4, s odkazom na kapitolu 6.9.1 a este dolezitejsim (implicitnym) odkazom na kapitolu 6.7.5.3, ktora hovori prave o tom, ze parametre su "adjustovane". (Bleeee... Kvalitne nenavidiet C si vyzaduje dokladnost a spustu studia... ;-) )

No to ano :-)  O poliach pisu v 6.3.2.1:

Except when it is the operand of the sizeof operator 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 and is not an lvalue. If the array object has
register storage class, the
behavior is undefined.

miro



Další informace o konferenci Hw-list