// przez referencje.cpp : Defines the entry point for the console application. // #include "stdafx.h" void modify(int &x,int &y) { int temp1, temp2; temp1=x; temp2=y; x=temp1*temp2; y=temp1/temp2; } int _tmain(int argc, _TCHAR* argv[]) { int x=10; int y=5; modify(x,y); printf("%d", x); printf("\n%d\n", y); return 0; }