fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int x[10] = {0};
  5. scanf("%d", &x[0]);
  6. scanf("%d", &x[9]);
  7. for (int i = 0; i < 10; i++) {
  8. printf("%d ", *(x+i));
  9. }
  10. printf("\n");
  11.  
  12. return 0;
  13. }
  14.  
  15.  
  16.  
Success #stdin #stdout 0.01s 5280KB
stdin
2 4
stdout
2 0 0 0 0 0 0 0 0 4