fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int arr[] = {1,2,3,4,5} ;
  6.  
  7. std::cout << sizeof(arr) <<std::endl;
  8. std::cout << sizeof(arr)/sizeof(arr[0]) <<std::endl;
  9. }
  10.  
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
20
5