#include using namespace std; //Dereferences a and set the value to b void setValue(int * a, int b) { *a = b; } int main() { int x; setValue(&x, 5); cout << x << '\n'; int * y; setValue(y, 10); cout << y << '\n'; return 0; }