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