concatenate variable naming

I was wondering if it's possible to concatenate the name of variable.

for example :

if i=1 then the name would be : int variable1;
if i=2 then the name would be : int variable2 ;
etc..
but
something like -

int variable+i;
this is not the correct syntax
as far as i know only in terms of the preprocessor with the ##-operator... but not during run-time...
Topic archived. No new replies allowed.