Re: A question on string literals
- From: pete <pfiland@xxxxxxxxxxxxxx>
- Date: Sun, 14 Aug 2005 00:14:38 GMT
Richard Heathfield wrote:
>
> pete wrote:
>
> > Richard Heathfield wrote:
> >>
> >> Chris Barts wrote:
> >>
> >> > In article <1123579479.194294.182390@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
> >> > Sriram Rajagopalan wrote:
> >> >>
> >> >> char arr1[] = { "Hello" };
> >> >> arr1 = 0; // Not allowed.
> >>
> >> Correct.
> >>
> >> >
> >> > No, that is still allowed: The array 'decomposes' into a pointer
> >>
> >> Incorrect. Such decay happens only in value contexts,
Where are you getting that from?
--
pete
.
- Follow-Ups:
- Re: A question on string literals
- From: Richard Heathfield
- Re: A question on string literals
- References:
- A question on string literals
- From: junky_fellow
- Re: A question on string literals
- From: Sriram Rajagopalan
- Re: A question on string literals
- From: Chris Barts
- Re: A question on string literals
- From: Richard Heathfield
- Re: A question on string literals
- From: pete
- Re: A question on string literals
- From: Richard Heathfield
- A question on string literals
- Prev by Date: Re: A question on string literals
- Next by Date: Re: Safe version of gets
- Previous by thread: Re: A question on string literals
- Next by thread: Re: A question on string literals
- Index(es):
Relevant Pages
|