Re: size_t problems
In article <46D92392.3E1D@ mindspring.com> ,
pete <pfiland@mindsp ring.comwrote:
I realise this is just pedantry, but who can complain?
Is the following legal:
typedef int array_type[7];
array_type *atwo = (array_type *)&aone[3];
and if so, what is the type of *atwo? And is not (*atwo)[-1] legal?
-- Richard
--
"Considerat ion shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
In article <46D92392.3E1D@ mindspring.com> ,
pete <pfiland@mindsp ring.comwrote:
> int aone[10];
> int *const atwo = &aone[3];
> int *const atwo = &aone[3];
>(&aone[3]) is the address of an object of type int.
Is the following legal:
typedef int array_type[7];
array_type *atwo = (array_type *)&aone[3];
and if so, what is the type of *atwo? And is not (*atwo)[-1] legal?
-- Richard
--
"Considerat ion shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Comment