tracks is a struct and track is a array in the main block of code
I am trying to create a referece in a function perimeter and my friend gave me this code and it works so i just put what needed to be said but when i create my own type it says:
When i try to create my own it gives me a cannot convert parameter 1 from 'int *' to 'int' message
void here(int x);
int main()
{
GWindow Gwin;
int x = 10;
here(&x);
return 0;
}
void here(int x)
{
x+=10;
}
Wondering what is the difference and why i get that error message
Why does the array get copied then? in the function it has all the numbers what i entered in the main and when the void closes it has the numbers i entered in the function in the main