Skip to content

Instantly share code, notes, and snippets.

Created July 29, 2016 22:02
Show Gist options
  • Save anonymous/7658707a03bf905ab9085ffea0bf7d6f to your computer and use it in GitHub Desktop.
Save anonymous/7658707a03bf905ab9085ffea0bf7d6f to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main ()
{
int chiffres[3], *pn = 0, x = 0;
pn = chiffres;
{
for(x=0; x<3; x++)
{
*pn = x+1;
pn ++;
}
for (x=0; x<3; x++)
{
printf("chiffres[%d] = %d \n", x, *pn);
}
}
return (0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment