17.8 — C-style array decay
The C-style array passing challenge The designers of the C language had a problem. Consider the following simple program: #include <iostream> void print(int val) { std::cout << val; } int main() { int x { 5 }; print(x); return 0; } When print(x) is called, the value of argument x …