Cod sursa(job #1963655)
| Utilizator | Data | 12 aprilie 2017 17:58:13 | |
|---|---|---|---|
| Problema | Trie | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva educationala | Marime | 0.22 kb |
#include <iostream>
using namespace std;
void func(int &val) {
val = 2;
}
int main()
{
int x = 10;
int *p1 = &x, *p2 = &x;
func(*p1);
cout<<x<<' '<<*p1<<' '<<*p2<<'\n';
return 0;
}
