Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
int* p = array;
for (int i = 0; i < length; ++i, ++p)
{
*p = i * i;
}
for (int i = 0; i < length; ++i)
{
Console.WriteLine(array[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment