I have this code:

typedef struct {
	unsigned short a, b, c, d, e, f, g, h;
est_ est[512];

I want to know if there is a way to access to a variable of est by this kind of thing:


Yes, it doesnt work but, there is a way to do such a thing?


That could be close to making sense to me, but not quite. Are you trying to do something more like this?


Or perhaps you could elaborate more about what you're trying to do.

Ok the question is that i need it inside a function . . .

int f_mov(char uno, char dos, int op, int pid)
	if(oneop(op) || op == O_NULL)
		return ERROR;
        /*Here, i want to do something like:
        or something to avoid a lot of comparisions*/
	return OK;

I was thinking of the "frequency counter with an array" thing which almost seemed similar:


But with uno, dos, a, b, c, d, e, f, g, h -- I can't discern any sort of relationship.

Well, i think i will use a two dimension array :)

Thanks anyway!