For ease of printing, I want to create one array of pointers to the elements of my struct. How can I do that? My attempt is on the last line of the struct. Just as a note, this struct has other values than int, that are now showed here. I want this sort of indexing only for the ints.
struct status {
int lastinputVac;
int inputVac;
int outputVac;
/* The unit is % */
int outputpower;
int outputHz;
/* The unit is % */
int batterylevel;
int temperatureC;
int *ordered_values[] = { &lastinputVac, &inputVac, &outputVac, &outputpower, &outputHz, &batterylevel, &temperatureC };
}