Hey guys, i've had sooo much trouble with just something that is probably really simple, would appreciate the answer please
I'm trying to make one array equal to another array, to make it worse i'm trying to make an array of a struct equeal to another one of the same type but I dont think that is the issue I think its just getting one array to equal another, below is sort of a list i made of things ive tried that have not worked
Code:
int arrayOne[10] = {6, 5, 7, 3, 2, 5, 6, 5, 4, 5};
int arrayTwo[10];
arrayTwo = arrayOne;
arrayTwo[10] = arrayOne[10]; //I'm guessing this will just make the 10th element equal to //arrayOne's 10th element, which is probably stupid since its the null terminator???
should I just make a for loop to do it or is there an easier way????
Thanks for the help.