Declaring in loops question

Jan 25, 2020 at 5:30pm
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;
}
Jan 25, 2020 at 5:39pm
Yes, that's right.
Jan 25, 2020 at 6:30pm
Thanks
Topic archived. No new replies allowed.