fork download
  1. #include <stdio.h>
  2. void addOneToThreeIntegers(int *x,int *y,int *z);
  3. int main(void)
  4. {
  5. int a,b,c;
  6. scanf("%d,%d,%d",&a,&b,&c);
  7. addOneToThreeIntegers(&a,&b,&c);
  8. return 0;}
  9. void addOneToThreeIntegers(int *x,int *y,int *z)
  10. {
  11. *x=*x+1;
  12. printf("%d",*x);
  13. }
Success #stdin #stdout 0s 5320KB
stdin
4,5,6
stdout
5