Topic: Thanks Mags and Vaughn for the enlightnement  (Read 2429 times)

0 Members and 1 Guest are viewing this topic.

Toasty0

  • Guest
Thanks Mags and Vaughn for the enlightnement
« on: April 26, 2003, 05:11:22 am »
Thanks Vaughn for posting that exchange {see:http://208.57.228.4/ubbthreads/showflat.php?Cat=&Board=UBB12&Number=72933&page=0&view=collapsed&sb=5&o=&fpart=1}

Code:
MagnumMan: Let me put it another way...
char *p = new char[4];
char c[4];

Centauri Vaughn: ok..char *p = new[4]; 4 being the index value for the array you can use .
then you have char c[4]; from what I see c[4] would hold the value of char times p.. They are both the same.

MagnumMan: Correct, they are both the same. Arrays and pointers are the same thing...



And, James, thanks for taking the time out of your busy schedule to teach others.

Pointers have been my big stumbling block so far...that exchange brought it all into focus.

Hows the baby and family? (Hope it's ok for me ask in public)

Best,
Jerry