fork(9) download
  1. #include <iostream>
  2. struct foo
  3. {
  4. int array[10];
  5. int simpleInt;
  6. foo() : array{1,2,3,4,5,6,7,8,9,10}, simpleInt(0) {};
  7. };
  8. int main()
  9. {
  10. foo f;
  11. for(int i=0; i<10; ++i)
  12. std::cout << f.array[i] << ' ';
  13. }
Success #stdin #stdout 0s 2828KB
stdin
Standard input is empty
stdout
1 2 3 4 5 6 7 8 9 10