fork download
  1. #include <stdio.h>
  2. void change(int x)
  3. {
  4. x=x+10;
  5. printf("value inside function:%d\n", x);
  6. }
  7.  
  8.  
  9.  
  10.  
  11. int main(void) {
  12. int a =5;
  13. printf("value before function call:%d\n",a);
  14. change(a);
  15. printf("value after function call:%d\n",a);
  16.  
  17.  
  18. // your code goes here
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
value before function call:5
value inside function:15
value after function call:5