fork download
  1. #include<stdio.h>
  2. void check(int *p) //formal arguments
  3. {
  4. printf("%d \n",*p); //10
  5. (*p)++;
  6. printf("%d \n",*p); //11
  7. }
  8. int main()
  9. {
  10. int i=10; //function arguments
  11. printf("%d \n",i); //10
  12. check(&i);//Actual argument as reference
  13. printf("%d ",i); //11
  14. return 0;
  15. }
Success #stdin #stdout 0s 4280KB
stdin
10 20
5 6
20 30
stdout
10 
10 
11 
11