Skip to content

Instantly share code, notes, and snippets.

View larry-oates's full-sized avatar

Larry Oates larry-oates

View GitHub Profile
@larry-oates
larry-oates / Arrays_arnt_pointers.c
Last active October 19, 2025 13:38
The C array-pointer myth
// Contary to the popular myth, an array's name isn't always the same as a pointer to it's first element!
#include <stdio.h>
int main() {
// You can reassign a pointer...
int *ptr;
ptr = (int *) 0xDEADBEEF;
// But as an array ISN't a pointer...