void func( int* pointer){ int i = 0 ; std::cout << *(pointer+i) ; // list[i] }; int list[]={1,2,3,9}; int* pointer = list ; func(pointer);