P
Paulo
When is a pointer a "const pointer" rather than a "pointer to
const" ?
In the following code example, the mainstream compilers which I have
used seem to interpret "px" as a "pointer to const int" and "py" as a
"const pointer to int".
typedef int TA[10];
typedef int * TP;
void foo(
const TA px,
const TP py )
{
}
Is this correct implementation ?
I would have expected both to be of type "const pointer to int".
Can you point me to a reference in ISO-C please.
const" ?
In the following code example, the mainstream compilers which I have
used seem to interpret "px" as a "pointer to const int" and "py" as a
"const pointer to int".
typedef int TA[10];
typedef int * TP;
void foo(
const TA px,
const TP py )
{
}
Is this correct implementation ?
I would have expected both to be of type "const pointer to int".
Can you point me to a reference in ISO-C please.