fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4.  
  5. int main(void) {
  6. int arr[3][3];
  7.  
  8. memcpy(arr, (int[3][3]){
  9. {3,3,3},
  10. {3,3,3},
  11. {3,3,3}}, sizeof(arr));
  12. for(int i = 0; i < 3; i++) {
  13. for(int j = 0; j < 3; j++) {
  14. printf("%d ", arr[i][j]);
  15. }
  16. puts("");
  17. }
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0.01s 5376KB
stdin
Standard input is empty
stdout
3 3 3 
3 3 3 
3 3 3