fork(6) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct test{
  5. int a;
  6. int b;
  7. };
  8.  
  9. int main() {
  10. const test atest[] = { {2,3}, {4,5} };
  11. cout << atest[0].a;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
2