fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. typedef float M[16];
  8. M array[sizeof(M)];
  9. cout << "size of array = " << sizeof(array) << ", "
  10. << "number of items = " << sizeof(array)/sizeof(array[0]) << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
size of array = 4096, number of items = 64