fork download
  1. #include <stdio.h>
  2.  
  3. void elabora (int *p)
  4. {
  5. p[0] = 10;
  6. p[1] = 100;
  7. p[2] = 1000;
  8. }
  9.  
  10. int main (void)
  11. {
  12. int a[3];
  13.  
  14. elabora (a);
  15. printf ("%i %i %i \n", a[0], a[1], a[2]);
  16.  
  17. getchar ();
  18. return 0;
  19. }
Success #stdin #stdout 0.02s 1724KB
stdin
Standard input is empty
stdout
10 100 1000