Is it possible to iterate of a C struct, where all members are of same type, using a pointer. Here\'s some sample code that does not compile:
#include
From the language point of view: you can't. data members of the struct are not... er.. "iteratible" in C, regardless of whether they are of the same type or of different types.
Use an array instead of a bunch of independent members.