954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

variable type int& inside function prototype

as

efronefron
Light Poster
35 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

And your request is?

Cross213
Posting Whiz in Training
239 posts since Aug 2011
Reputation Points: 15
Solved Threads: 22
 

sorry, I have to take down my code until its marked. I probably put it in the future.

but basically the question is:
the difference between

int a = 0;
function call: (&a)
function prototype: (int *)

and

int a = 0;
function call: (a)
function prototype: (int &)

and

int a = 0;
function call: (a)
function prototype: (int)

Especially the middle one, I dont understand why you would do the middle one instead of the third one

efronefron
Light Poster
35 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: