Need help figuring this pointer/modifying problem out.

i need to fix this problem out so it'll work properly :

Consider the function
void modify(int x)//
{
x = 10;
}
Show how to call the modify function so that it sets the integer int i; to 10.

Now what stumps me is there is no pointer to reference it to and frankly pointers has been a weak point of mine during class. Any help would be appreciated (and i mean a lot lol)

1
2
3
4
void modify(int& x)
{
x = 10;
};

Topic archived. No new replies allowed.