fork(3) download
  1. #include <iostream>
  2. #include <cstring>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int l[3][3];
  9. memset (l, 1, sizeof(l));
  10. for (int i = 0; i < 3; i++) {
  11. for (int j = 0; j < 3; j++) {
  12. cout << l[i][j] << " ";
  13. }
  14. cout << endl;
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
16843009 16843009 16843009 
16843009 16843009 16843009 
16843009 16843009 16843009