#include //includes cstddef, where size_t is defined #include using namespace std; int main() { const int a[] = { 31, //January 28, //February, ignoring for now the possibility of leap year 31, //March 30, //April 31, //May 30, //June 31, //July 31, //August 30, //September 31, //October 30, //November 31 //December }; const size_t n = sizeof a / sizeof a[0]; for (size_t i = 0; i < n; ++i) { cout << a[i] << "\n"; } cout << "\n"; for (const int *p = a; p < a + n; ++p) { cout << *p << "\n"; } return EXIT_SUCCESS; }