pointer 102 question


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

I read a book
1
2
3
Did you know?Explore Trending and Topic pages for more stories like this.
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

Upload file and add HTML
Hey everyone,

I have a client has meeting agendas and minutes that should be posted online. I

sql problems
I am having a small problem with my sql statement. it is inserting into 4 of the fields.

fie

foreach loop, assistance request
I would like some guidance on the usage of foreach as I try to parse through a large database and wh

Javascript or not?
How many people prefer javascript/ajax sites? How many prefer the good old fashion straight php sit

MySQL issue
I am taking sentences through a form on page. Then checking some condition and trying to insert them

Greek characters in php
Hi,

I'm making a script and I m using for first time greek characters.
I started to write

How do I replace any number of character occurences with one occurrence?
How do I replace any number of character occurences with one occurrence?

Let's say I have:

Java API in PHP?
I have an application that we use internally here at the office.

The software company provide

extract content from a website
i have written a code that will grab the content from the index page..
i would like to know how c

do while conditions
i want to display 6 images in a 2x3 table
now what would be the correct logic to
count that th

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