Skip to content

Instantly share code, notes, and snippets.

@hbons
Last active December 26, 2022 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hbons/3d464ecd3da31ec6223cdde2e92565e9 to your computer and use it in GitHub Desktop.
Save hbons/3d464ecd3da31ec6223cdde2e92565e9 to your computer and use it in GitHub Desktop.
struct myStruct *p = &myStructs[0]; // Create a pointer to the first array element
for (uint8_t i = 0; i != N_ELEMENTS; i++) {
print_f(p->value); // Access the struct
p++; // Advance the pointer
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment