Facebook
From Marek s., 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 286
  1. #include "stdafx.h"
  2.  
  3. void modify(int &x,int &y)
  4. {
  5.         int temp1, temp2;
  6.         temp1=x;
  7.         temp2=y;
  8.         x=temp1*temp2;
  9.         y=temp1/temp2;
  10. }
  11.  
  12. int _tmain(int argc, _TCHAR* argv[])
  13. {
  14.  
  15.         modify(10,5);
  16.         printf("%d", x);
  17.         printf("%d\n", y);
  18.         return 0;
  19. }