fork(1) download
  1. #include <iostream>
  2.  
  3. int a; // Будет равно нулю.
  4.  
  5. int main()
  6. {
  7. int b; // А вот здесь будет мусор.
  8.  
  9.  
  10. std::cout << a << " " << b << std::endl;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
0 0