fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct foo {
  5. const int bar = 42;
  6. };
  7.  
  8. int main() {
  9.  
  10. foo f;
  11. foo b{2};
  12.  
  13. cout << f.bar << ' ' << b.bar << '\n';
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
42 2