[Solved] Array of structs or pointer indexing ... Options / Best practice?

Back to the original question:

Dyslexicbloke:
I currently have an array of structs tht I need to iterate through.
...
Is this the right approach or should I be creating structs and indexing through their pointers without the array?

The general rule:

Create an array of structs and loop through them using the array's index.

This creates code that is both readable and less error-prone.

Off the top of my head:

struct Volts {
  float Value;
  char* Name;
};

static const int VoltListCount = 2;
Volts voltList[VoltListCount] = {
  {6, "DC"},
  {120, "AC"}
};

void setup() {
  for(int i=0; i<VoltListCount; i++) {
    if(voltList[i] ...
    ...