int *a
defines pointer a
*b
dereferences b
&c
returns the address of c
Displaying the address of a value
Dereferening a pointer
#include <stdio.h>
int increment(int* value) {
*value += 1;
}
int main() {
int a = 1;
increment(&a);
printf("%d", a);
}
Passing pointers