Pointers: Difference between revisions

wikademia>Rantir
→Pointers with Malloc: Upaded example to have malloced data with functions
wikademia>Wikademia
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 2: Line 2:


==Basic Pointers==
==Basic Pointers==
 
{{?}}
===Creating, initializing and assigning===
===Creating, initializing and assigning===
This example shows simple pointer creation, assignment and dereference.
This example shows simple pointer creation, assignment and dereference.
Line 345: Line 345:


==Pointer Arithmetic==
==Pointer Arithmetic==
TODO


==Advanced Pointers with Arrays==
==Advanced Pointers with Arrays==
Shows how arrays and pointers are really the same thing.  
Shows how arrays and pointers can be treated the same.  
Example: Creating an array structure with pointers.  
Example: Creating an array structure with pointers.  
Example: Using pointer arithmetic to index array
Example: Using pointer arithmetic to index array