Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC++references vs pointersSingle-choice MCQ

What is the size of `arr` versus the parameter inside `f`?

void f(int p[]) { std::cout << sizeof(p) << " "; } int arr[10]; std::cout << sizeof(arr) << " "; // (1) f(arr); // (2)