🟢 Վարժություն 14

Ի՞նչ կտպվի էկրանին։
#include<iostream>
void foo(const int *a, const int size) {
  std::cout << *(a + size - 2);
}

int main() {
   constexpr int N = 10;
   int arr[N] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
   foo(arr, N);
}
To check your solution you need to sign in
Sign in to continue