#include <iostream>
using std::cout;
using std:endl;
int main()
{
shortint numbers[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
cout << sizeof(numbers) << endl;
return 0;
}
20
Now according to the reference[1] sizeof() is supposed to get the number of elements in the array. So... since I've explicitly identified that I have ten elements... why is it returning 20?