Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int test(int (&arr) [5])
- {
- for(const auto & ay : arr)
- std::cout << ay << std::endl;
- return 0;
- }
- int main(){
- int arr [5] = {1, 2, 3, 4, 5};
- test(arr);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement