fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void primeiro(int a) {
  5. a *= 2;
  6. printf("%d", a);
  7. }
  8.  
  9. void segundo(int *u) {
  10. int x = 1;
  11. x = x + *u;
  12. primeiro(x);
  13. *u = x++;
  14. }
  15.  
  16. int main() {
  17. int x = 5;
  18. segundo(&x);
  19. printf(":%d\n", x);
  20. }
  21.  
Success #stdin #stdout 0s 4348KB
stdin
Standard input is empty
stdout
12:6