Declaring in loops question

I am assuming that if I do this.
I am not stacking memory on top of each other but it is going through the process of:
1. Create an object
2. After each iteration, destroy the object

Is this correct?

1
2
3
4
for(int i = 0;i < lotto.size();i++)
{
	int random_index;
}
Yes, that's right.
Thanks
Topic archived. No new replies allowed.