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

Question about the upload of large files
Hi there,

I have a question about the upload of large files, like videos (files generally abo

Storing user data help?
Hey Guys,

I'm not use if this question is to broad but I can always give you more informatio

preg_match logical error
Code: <?php
$s = file_get_contents("page.html");
preg_match('/<div cla

Multiple upload and Resize
I would like some help on my script I have the for my index.php

////

<html&

Functions Not Loading Into Div
I had some help doing some of this but what I'm trying to do is get my functions to retrieve its val

php redirecting
i wont open a new thread but i have a question about redirecting....
i wonder why my code doesnt

Problems with strings containing
Hey all,

I have encountered something strange in a script. I am trying to write an XML heade

array_combine() trouble w/csv file
I have a problem with a piece of code I wrote to import some records from a csv file into mysql. I h

animation progress while uploading files?
Hello, i have some website form to upload few files to server. i want to put some gif animation whi

login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php

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