Hello all thank you for the work done in the tutorials I'm following them and really enjoying them got to up to the tic tac toe part. Anyways I got a question I noticed in the first few lessons we used int to declare/initialize/call (I get confused with those words) main function but as I moved along I noticed that now I'm using void main (){ ...
So my question is what is the diference between void and main in the main function call.
Another question I got is about arrays. I understand how they are declared and the several ways to initialize them, what confuses me is when I can't do
iaArray1 = iaArray2;
but instead
int iaArray1[3] = {1,2,3};
int iaArray2[3];
int iIndex = 0;
while (iIndex < 0) {
iaArray2[iIndex] = iaArray1[iIndex];
}
could I have done this:
int iaArray1[3] = {1,2,3};
int iaArray2[3];
int iIndex = iaArray1;
int iaArray2 = iIndex;
}
What I understand is the first one is not possible the second one iaArray1 equals iaArray2 as long as iIndex is less than 0. In the third one (the one I made up) its saying iIndex equals iaArray1 and iaArray2 equals iIndex.
Anyway if anyone could develop a bit more I will greatly appreciate it.
Thanks in advance.