cplusplus:pointers_2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
cplusplus:pointers_2 [2016/03/05 22:38] – [Pointers 2] mithat | cplusplus:pointers_2 [2019/03/11 19:51] – [Calling functions by reference] mithat | ||
---|---|---|---|
Line 23: | Line 23: | ||
<file cpp function-with-pointer.cpp> | <file cpp function-with-pointer.cpp> | ||
- | /** Demostrates | + | /** Demonstrates |
#include < | #include < | ||
using namespace std; | using namespace std; | ||
Line 88: | Line 88: | ||
</ | </ | ||
- | <WRAP center | + | <WRAP center tip 90%> |
- | I (and many other programmers) | + | I feel pointers are much better |
</ | </ | ||
Line 147: | Line 147: | ||
<WRAP center round tip 90%> | <WRAP center round tip 90%> | ||
- | One way to remember this is "const modifies the thing immediately following it." In the case of: | + | One way to remember this is //"'' |
+ | |||
+ | In the case of: | ||
<code c++>int *const myPtr = & | <code c++>int *const myPtr = & | ||
'' | '' |
cplusplus/pointers_2.txt · Last modified: 2019/03/28 16:55 by mithat