Re: pointer value
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Sat, 30 Jul 2005 09:23:18 GMT
JD wrote:
>
> int (*a)[10];
> a++;
> what will be the value of a?
You answer this by considering what a is. It is a pointer to an
array of 10 ints. Since it is uninitialized, incrementing it (or
dereferencing it) results in undefined behavior.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
.
- References:
- pointer value
- From: JD
- pointer value
- Prev by Date: Re: [OT] stepping inside a DLL
- Next by Date: Re: printf
- Previous by thread: Re: pointer value
- Next by thread: Initializer element not constant
- Index(es):
Relevant Pages
|