Pointers: Difference between revisions
wikademia>Rantir →Advanced Pointers: Added sub-sections |
wikademia>Rantir Broke basic pointers into subsections |
||
| Line 2: | Line 2: | ||
==Basic Pointers== | ==Basic Pointers== | ||
===Creating, initializing and assigning=== | |||
This example shows simple pointer creation, assignment and dereference. | This example shows simple pointer creation, assignment and dereference. | ||
<source lang="c"> | <source lang="c"> | ||
| Line 66: | Line 68: | ||
</source> | </source> | ||
==Basic Pointers with Functions== | ===Basic Pointers with Functions=== | ||
This example shows how pointers can be used in functions. The code gives the reader some questions to consider and answer on their own. | This example shows how pointers can be used in functions. The code gives the reader some questions to consider and answer on their own. | ||
<source lang="c"> | <source lang="c"> | ||