#include using namespace std ; void function1( int arr[] ) { cout << "Size of arr:" << sizeof( arr ) << endl ; } int main() { int arr1[5] ; arr1[0] = 10 ; arr1[1] = 20 ; //Seems to work here cout << "Size of arr:" << sizeof( arr1 ) << endl ; function1( arr1 ) ; }