Re: Simple question on Pointers



Alan Carre wrote:
"Doug Harrison [MVP]" <dsh@xxxxxxxx> wrote in message

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]. :)

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.

How about?

char *p = new char[12];

---
.



Relevant Pages

  • Re: Press any key to continue?
    ... Btw, if "return" key is good enough, you could use the fget intrinsic ... supplied by g77, no need for mixing C + fortran. ...
    (comp.lang.fortran)
  • Re: Rene cant handle AoAs Success
    ... design, some day. ... Since the days of FORTRAN (that's pre-1956, btw), ... we've known how to bind different attributes to a name appearing in a ...
    (alt.lang.asm)
  • Re: Nuts
    ... of COBOL *any* discusssion about standardization of languages us a real ... joke. ... ((BTW, I also write in several version of BASIC, FORTRAN, C and have ...
    (alt.html)
  • Re: Simple question on Pointers
    ... which demonstrates that the above "explanation" is incorrect. ... BTW, I thought we were talking about ... about FORTRAN or something. ...
    (microsoft.public.vc.language)
  • Re: Rene cant handle AoAs Success
    ... design, some day. ... Since the days of FORTRAN (that's pre-1956, btw), ... we've known how to bind different attributes to a name appearing in a ...
    (alt.lang.asm)

Loading