Programming 01

馃煝聽諑铡謤摘崭謧诈盏崭謧斩 11

曰諡斩展 寨蘸湛站斋 乍寨謤铡斩斋斩謮
#include <iostream>
int main() {
  int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
  int* p = arr;
  for (int i = 0; i < 10; i+=2) {
     std::cout << *(p+i) << " ";
  }
}
To check your solution you need to sign in
Sign in to continue