Automatically generate variables



Hello,

I am looking for a method to automatically declare variables in C.
I'm not sure if there is a good way to do this, but I had something
like this in mind...

int i;

for(i = 1; i < 4; i++){

int variable....

}

For example, this loop would declare the following variables all of
type int:

variable1
variable2
variable3

Is something like this possible? Is there another way?

Thanks in advance,

-Nate

.



Relevant Pages

  • Re: Automatically generate variables
    ... jacob navia wrote: ... I am looking for a method to automatically declare variables in C. ... int variable.... ... All OT, blah, blah, blah, of course. ...
    (comp.lang.c)
  • Re: Automatically generate variables
    ... jacob navia wrote: ... I am looking for a method to automatically declare variables in C. ... int variable.... ... All OT, blah, blah, blah, of course. ...
    (comp.lang.c)
  • Re: Automatically generate variables
    ... Eric Sosman a écrit: ... I am looking for a method to automatically declare variables in C. ... int variable.... ... yield for an investment of a mere nine lines of code. ...
    (comp.lang.c)
  • Re: Automatically generate variables
    ... I am looking for a method to automatically declare variables in C. ... int variable.... ... yield for an investment of a mere nine lines of code. ...
    (comp.lang.c)
  • Re: Automatically generate variables
    ... Nate wrote: ... I am looking for a method to automatically declare variables in C. ... int variable.... ...
    (comp.lang.c)