fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << sizeof(float) << endl;
  6. cout << sizeof(long) << endl;
  7. cout << sizeof(double) << endl;
  8. cout << sizeof(long long) << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
4
4
8
8