fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. std::cout << sizeof(0) << std::endl;
  6. std::cout << int(sizeof(0))<< std::endl;
  7. std::cout << sizeof(0)["abcdefghij"] << std::endl;
  8. std::cout << int(sizeof(0)["abcdefghij"]) << std::endl;
  9. std::cout << 4["abcdefghij"] << std::endl;
  10. std::cout << int(4["abcdefghij"]) << std::endl;
  11. std::cout << sizeof(4)["abcdefghij"] << std::endl;
  12. std::cout << int(sizeof(0)["abcdefghij"]) << std::endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 4244KB
stdin
Standard input is empty
stdout
4
4
1
1
e
101
1
1