Easy
sizeof on an array and on an array parameter
Assuming a typical 64-bit platform (4-byte int, 8-byte pointer), what does this program print?
main.cpp
#include <iostream>
void printSize(int arr[]) {
std::cout << sizeof(arr) << std::endl;
}
int main() {
int arr[10];
std::cout << sizeof(arr) << std::endl;
printSize(arr);
}9 of 117 in C++