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