Playground
#include <iostream> using namespace std; int f1(int *x, int *y) { (*x) = 5; (*y)++; return (*x) + (*y); } int main() { int a = 10, b = 4; cout << f1(&a, &b) << endl; //pechati '10' cout << a << " " << b << endl; //pechati '5 5' cout << f1(&a, &b) << endl; //pechati '11' cout << a << " " << b << endl; //pechati '5 6' return 0; }
Input data
Program output
no input
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!