Sujet : Re: So You Think You Can Const?
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.cDate : 08. Jan 2025, 16:53:44
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vlm728$2rfbl$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
On 08/01/2025 16:16, Ben Bacarisse wrote:
Technically you get an object with no effective type. David's reply
included some references to find out more about the effective type of an
object, but it is safe to say that these only come into play if you are
messing about with the way you access the allocated storage (for example
accessing it as a MyStruct but then later as a floating point object).
My turn for the little correction - it was Kaz that gave the helpful references, not me :-)
But I can give the OP a useful reference - the site cppreference.com has a lot of accurate reference information about C (and C++, for those that want it). It is usually a little easier to read than the C standards, while still being very accurate.
<
https://en.cppreference.com/w/c/language>
<
https://en.cppreference.com/w/c/language/object>
<
https://en.cppreference.com/w/c/language/const>
<
https://en.cppreference.com/w/c/language/declarations>