Question

I want to use abc1 ,abc2, abc3,abc4,..abc100,as struct variable name. But I don't know how to set this? have no idea.

Can anybody help me out? Thanks indeed.

Was it helpful?

Solution

It sounds like you're looking for an array.

typedef struct { 
/* ... */
} whatever;

whatever abc[100];

abc[0] = xxx;
abc[3] = yyy;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top