fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct foo{
  5. uint32_t i;
  6. uint8_t b;
  7. };
  8.  
  9. int main() {
  10. // your code goes here
  11. cout << sizeof(foo) << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
8