Re: Simple question on Pointers
- From: "Doug Harrison [MVP]" <dsh@xxxxxxxx>
- Date: Sat, 29 Nov 2008 16:20:18 -0600
On Sun, 30 Nov 2008 02:09:20 +0700, "Alan Carre" <alan@xxxxxxxxxxxxxxxxx>
wrote:
[Alan]
a[0], a[1], .... a[12] are all initialized variables (12 variables). 'a',
however, is not.
[Doug]
Again, the array "a" is certainly initialized, and a[i] are not separate
variables; they are all part of "a". BTW, I thought we were talking about a
char[12]. :)
[Alan]
I don't know what a "char[12]" is. Perhaps you're thinking we're talking
about FORTRAN or something. There is no such thing as a char[12] as far as
the C++ language is concerned.
BTW, did you get the point that a[i] are not separate variables? What about
the smiley usage?
--
Doug Harrison
Visual C++ MVP
.
- References:
- Simple question on Pointers
- From: Robby
- Re: Simple question on Pointers
- From: Alan Carre
- Re: Simple question on Pointers
- From: Doug Harrison [MVP]
- Re: Simple question on Pointers
- From: Alan Carre
- Simple question on Pointers
- Prev by Date: Re: #define and (brackets)
- Next by Date: Re: #define and (brackets)
- Previous by thread: Re: Simple question on Pointers
- Next by thread: CSocketComm
- Index(es):
Relevant Pages
|