fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int tab[10] = {2,4,6,8,10,14,16,18,20};
  6. int *pi, i;
  7. for(pi = tab; ++pi < tab+9;)
  8. {
  9. *pi++ = 0;
  10. *pi *= 2;
  11. }
  12.  
  13. for(int i=0; i<10; i++)
  14. printf("%d ", tab[i]);
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
2 0 12 0 20 0 32 0 40 0