N
Noobzo
Hello, i'm learning about arrays and my question is, when do arrays
get their memory reserved? here are some exaples
1)
void Function1()
{
int arr[10];
arr[0] = 1;
}
int main( )
{
Function1();
}
////////////////////////////////////////////////////
2)
int main( )
{
Array1[5];
{
Array2[15];
{
Array3[20];
}
}
}// does the block prevent the array from being allocated until it
reaches execution?
thank you.
get their memory reserved? here are some exaples
1)
void Function1()
{
int arr[10];
arr[0] = 1;
}
int main( )
{
Function1();
}
////////////////////////////////////////////////////
2)
int main( )
{
Array1[5];
{
Array2[15];
{
Array3[20];
}
}
}// does the block prevent the array from being allocated until it
reaches execution?
thank you.