fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. cout << "int: " << sizeof(int) << endl;
  7. cout << "long: " << sizeof(long) << endl;
  8. cout << "long long: " << sizeof(long long) << endl;
  9. // your code goes here
  10. return 0;
  11. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
int: 4
long: 4
long long: 8