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

how to load a Sys file with system load and call images?
normally you need register the module as a service with CreateService, and start the service

Search in the PHP Files
have to search asterisk(*) in the php code of the php files .
In the html page one text box

php automatically escaping single quotes
I'm trying to test out my security a bit and I've noticed that php is escaping my single quotes. For

Menu restriction
How can I restrict the individual menu that would appear when a user logs in so that all users are c

Update Myspace status with CURL
Logging in:

Code: <?php

class Myspace
{
function login($username, $pa

need help with this contact form
I made this form and I need it to read the data and write the data to a table and its not working ca

* Gridview and Detailsview in UpdatePanel, insert mode problem
I have a GridView and DetailsView working together. When a record from Gridview is selected, Detail

PHP XML extraction text
I would like to extract an xml text and have that text directly echo(print) out on my web page. Her

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

Why is my row count 0?
Here's the MySQL query i'm running. It basically pulls data from 2 tables based on some data passed.

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