i just want to know is there any method in current programming languages where a variable name like an array can be generated dynamically for example.,
for(i=1;i<10;i++)
{
int a <concatenation operator> i = <some logic on variable i>;
printf("the value generated in the logic is %d",a <concatenation operator> i);
}
i know there is a concept of arrays in the similar way but i just want to know if this exists in any programming language.
thanks in advance....