fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int key1[10][3];
  7. int out[4] = {1,0,0,1};
  8.  
  9. int i, j;
  10. for(i =0;i<10;i++)
  11. {
  12. for(j=0;j<3;j++)
  13. {
  14. key1[i][j] = out[j];
  15. //printf("%d",key1[i][j]);
  16. //at this point it will print 100
  17. }
  18. }
  19. printf("%d",key1[0][0]);
  20. printf("%d",key1[0][1]);
  21. printf("%d",key1[0][2]);
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
100