#include <stdio.h>
int main (void)
{
int a[3];
int *p;
p = &a[0]; // «p» diventa un alias dell'array «a».
p[0] = 10; // Si può fare solo con gli array
p[1] = 100; // a una sola dimensione.
p[2] = 1000; //
printf ("%i %i %i \n", a
[0], a
[1], a
[2]);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbiAodm9pZCkKewogIGludCBhWzNdOwogIGludCAqcDsKCiAgcCA9ICZhWzBdOyAgICAvLyDCq3DCuyBkaXZlbnRhIHVuIGFsaWFzIGRlbGwnYXJyYXkgwqthwrsuCgogIHBbMF0gPSAxMDsgICAgLy8gU2kgcHXDsiBmYXJlIHNvbG8gY29uIGdsaSBhcnJheQogIHBbMV0gPSAxMDA7ICAgLy8gYSB1bmEgc29sYSBkaW1lbnNpb25lLgogIHBbMl0gPSAxMDAwOyAgLy8KCiAgcHJpbnRmICgiJWkgJWkgJWkgXG4iLCAgYVswXSwgYVsxXSwgYVsyXSk7CgogIHJldHVybiAwOwp9