fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int array[100];
  5. int siz()
  6. {
  7. return sizeof(array)/sizeof(array[0]);
  8. }
  9.  
  10. int main() {
  11. cout<<siz();
  12. return 0;
  13. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
100