fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3. struct s{
  4. double a;
  5. char b;
  6. double c;
  7. int d;
  8. };
  9. int main() {
  10. s x;
  11. cout << sizeof(x);
  12. return 0;
  13. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
24