pointer 102 question


Posted on 16th Feb 2014 07:03 pm by admin

I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() { int i; f(&i); cout << i; return 0; void f(int *j) { *j = 100; } }

I don't understand why f(&i) will work
&i is the address of i
should void f(int *j) change to void f(int &j)?
I understand I must be wrong, but what the meaning difference fot those two expressions??

No comments posted yet

Your Answer:

Login to answer
52 Like 35 Dislike
Previous forums Next forums
Other forums

some questions
Hello,

I am looking for the answers for following questions:

1) Does PHP support overl

Cappotti Donna Moncler : moncler, monclerforcoat.top
[b][url=http://it.topmonclerstores.top/]moncler vendita[/url][/b] [b][url=http://www.topmonclerstor

Adding delete feature to my forum
Hello I am currently trying to add a delete feature to my forum. I believe I have everything built r

Luxueux Montblanc Marlene Dietrich ont été en forte demande depuis longtemps
[b][url=http://www.pensclub.cn/fr/]stylos[/url][/b] [b][url=http://www.pensclub.cn/fr/]stylos mont b

Goedkope NIKE NFL , NIKE NFL online
[b][url=http://nl.brazilfifaworldcup2014.net/nike-nfl-arizona-cardinals-c-39_40.html]Sale NFL Jersey

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS