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

pls clear my confusion
Hi friends,

Pls solve my query .

what is the exact use of Scope Resolution Operator( i

PHP Upload issue
Hi guys,

I have stumble across an interesting issue with my script and is doing my head in.

Adding to an Int row in db
Hi, i have a database which houses all of the users of my site. One of the columns is for points whi

Security Exception on pages using AJAX
I am getting the exception: attempted to perform an operation not allowed by the security policy on

links using header()
Hi All

I'm not sure where to ask for help on this but I hope someone can offer some. I'm at

unexpected T_SL without a shift left token
Nothing too see here, I'm an idiot and resolved the problem.

browse folder only
hi,
is there a way i can browse or get the directory or folder only and not the file?
i just w

Not loading image
When this function gets loaded it doesn't load the image just trying to figure out why.

Code:

Upload Code Help
Hi everyone I need some help with a bit of code ive been working with for a while. I am completely s

PHP Function Page Advice
Hi All, I am quite new to PHP and Javascript but have written an Online Shop (Mainly for Fun and edu

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



Play Free Quiz and Win Cash