Learn Finance C++, Lesson 22, Pass by Value, References, Pointers, and Indirect Pointers
Andy009Duncan
So why do we need references and pointers? To save unnecessary and slow data copying between functions, usually. Pointers and references give C++ enormous speed, as they tap directly into computer memory structures, almost down to machine-code level. Here, we run through four different ways of changing an integer value via a function subroutine call, using 'pass by value', 'pass by reference', and two different ways of 'pass by pointer'.
http://andyjamesduncan.wordpress.com
Finished code block:
http://andyjamesduncan.wordpress.com/2013/02/05/learn-finance-c-lesson-22-pass-by-value-references-pointers-and-indirect-pointers/ ... https://www.youtube.com/watch?v=lwlcxbx2eOs
2023-02-15
0.0 LBC
Copyrighted (contact publisher)
92404039 Bytes