assuming struct S is defined,
'const struct S *&' and 'struct S * const &'
using VC6
assuming struct S is defined,
'const struct S *&' and 'struct S * const &'
using VC6
C Code. C Code Run. Run Code Run... Please!
"Love is like a blackhole, you fall into it... then you get ripped apart"
So the placement of the const determines what it is applied to? How do you determine what is constant and what isnt based on the type?
C Code. C Code Run. Run Code Run... Please!
"Love is like a blackhole, you fall into it... then you get ripped apart"
Yes.So the placement of the const determines what it is applied to?
const only applies to the pointer when it's placed after the asterisk. For example, these two declarations are equivalent:How do you determine what is constant and what isnt based on the type?Meaning, MyVar can change, but *MyVar cannot. However,Code:const MyType* MyVar; MyType const* MyVar;
means MyVar cannot change, but *MyVar can.Code:MyType* const MyVar;
Or if you like symmetry:
MyType const * const MyVar;
The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.