B
Barry
void func(int array[32]) {
for (int i = 0; i < 32; ++i)
cout << array << ' ';
}
as the code above shows, I know int array[32] here will decay into int
*, but I still find the number 32 useful for reminding me the array len
Is this code standard confirmed?
for (int i = 0; i < 32; ++i)
cout << array << ' ';
}
as the code above shows, I know int array[32] here will decay into int
*, but I still find the number 32 useful for reminding me the array len
Is this code standard confirmed?