// The use of sizeof() operator to get size and
// number of elements of an array.
#include <iostream>
using namespace std;

int main()
{
  const int n = 10;
  double array[n] = { 23.5, 32.8, 33.9, 31.3, 26.9,
                      21.3, 19.4, 23.7, 26.9, 31.6 };

  cout << "sizeof(array)       = " << sizeof(array)
       << endl;
  cout << "Number of elements  = " << sizeof(array)/sizeof(double)
       << endl;

  return 0;
}
