fork(2) download
  1. #include<stdio.h>
  2.  
  3. int param(int x) {
  4. return x + 10;
  5. }
  6.  
  7. int main() {
  8. printf("Digite um numero: ");
  9. int x;
  10. scanf(" %d", &x);
  11. int y = param(x);
  12. printf("\nO valor de y e %d \n", y);
  13. printf("\nO valor de x e %d \n", x);
  14. }
  15.  
  16. //https://pt.stackoverflow.com/q/493850/101
Success #stdin #stdout 0s 4996KB
stdin
5
stdout
Digite um numero: 
O valor de y e 15 

O valor de x e 5