<syntaxhighlight lang="c">
int main() {
int *a; *a=5; printf("%d",a);
return 0;
}
</syntaxhighlight>
int *a; // This declares a as an integer pointer, meaning a can point to a memory address which contains an int
<syntaxhighlight lang="c">
int main() {
int *a; *a=5; printf("%d",a);
return 0;
}
</syntaxhighlight>
int *a; // This declares a as an integer pointer, meaning a can point to a memory address which contains an int