fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. float a[] = {1,2,3,4,5};
  8. cout << sizeof(a) / sizeof(float) << endl;
  9. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
5