View Single Post
Old 02-07-07, 03:05 PM   #6
Marvel_us
FOOL!
 
Marvel_us's Avatar
 
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
Default Re: String Array in C

Quote:
Originally Posted by Imbroglio
yes, myArray[3] would get the pointer value of str. but don't get confused, if you change what str points to down the line, it would also change the value of myArray[3]
What if he just did the same thing without the pointers....ie:

char myArray[10];
char str = "string!";

myArray[3] = str;

Wouldn't he get the same results or no?
__________________
Main Rig
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU ||

60gb PS3 Owner
PSNid: Marvel_us
Marvel_us is offline   Reply With Quote