Status: Tags: Links: C MOC
Pointers and References
Pointers
- Hold the location of variables
- Can change parameters of functions
- Used to modify variables sent to a function by getting adress as parameter
void foo(int* a)
as parameter, call usingfoo(&a)
Syntax
&
to get adress of a value
*
dereferencing, access value at the adress
|
|
Backlinks
|
|
References:
Created:: 2021-09-13 14:35