User Tools

Site Tools


cplusplus:pointers_2_slides

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
cplusplus:pointers_2_slides [2021/10/19 19:42] – [Constant pointers] mithatcplusplus:pointers_2_slides [2021/10/19 19:42] – [Calling functions by reference] mithat
Line 66: Line 66:
   * Syntax in function invocation (e.g., ''cubeByReference(&number))'' makes clear that a pointer is involved --- good indication that call by reference is used in the function.   * Syntax in function invocation (e.g., ''cubeByReference(&number))'' makes clear that a pointer is involved --- good indication that call by reference is used in the function.
  
-===== Calling functions by reference =====+===== Example =====
 <file cpp cube-by-reference.cpp> <file cpp cube-by-reference.cpp>
 /** Cube a variable using pass by reference with a pointer. */ /** Cube a variable using pass by reference with a pointer. */
cplusplus/pointers_2_slides.txt · Last modified: 2021/10/19 19:46 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki