fork download
  1. #include <cstdio>
  2.  
  3. int gval[10][10] = { 100, };
  4.  
  5. int main() {
  6. for (int i = 0; i < 10; i++) {
  7. printf("%d ", gval[0][i]);
  8. }
  9. printf("\n");
  10. for (int i = 0; i < 10; i++) {
  11. printf("%d ", gval[1][i]);
  12. }
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
100 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0