after the loop finished, how do i return buff to its original position so i could run another loop on it?
(also, here buff is a pointer to an int. what if it was a pointer to an array of classes?)
(also, here buff is a pointer to an int. what if it was a pointer to an array of classes?)
int *buff = new int[1024];
for (i = 0; i < 1024; i++)
{
*buff = 52; // just a random number
buff++;
} 