cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
function pass by both pointer and refere
function pass by both pointer and reference
Dec 16, 2014 at 3:25pm UTC
anhnha
(80)
I just came across a function definition as follows.
I learned function pass by value, reference and pointer but this is new to me.
Could you explain a bit?
BOOL function_name(
int
* &x,
int
* &y )
Dec 16, 2014 at 3:41pm UTC
mutexe
(2372)
http://www.codeproject.com/Articles/4894/Pointer-to-Pointer-and-Reference-to-Pointer
Dec 16, 2014 at 3:46pm UTC
rafae11
(264)
http://www.cplusplus.com/forum/unices/23534/
Dec 16, 2014 at 3:47pm UTC
dhayden
(5798)
Those are references to pointers. So presumably the function sets them and returns a boolean status to indicate whether it succeeded.
Dec 16, 2014 at 5:07pm UTC
anhnha
(80)
Well, they help! Thanks!!!
Topic archived. No new replies allowed.