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. return 0;
  18. }
  19.  
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
10 100 1000