Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. void f(int a, int *b, int &c, int d=5)
  2. {
  3. a+=2; *b+=d, c+=2;
  4. }
  5.  
  6. int main()
  7. {
  8. int x=0, y=0, z=0;
  9. f(x,&y,z);
  10. printf("%d %d %d", x,y,z);
  11. return0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement