|
|
|
|
|
by jcelerier
631 days ago
|
|
> Static array indices in function parameter declarations: awesome, a shame that C++ (and Tiny C) do not support it >/ C++ does? void print(const int (&array)[5]) {
for(size_t i = 0; i < size; ++i)
std::cout << array[i] << " ";
}
will fail at compile time if you pass it anything other than an int[5] array |
|