This is test.c in view mode; [Download] [Up]
main()
{
float *array;
struct b {
float a;
float b;
} st[20];
int i;
for(i=0; i<20; i++) {
st[i].a = i;
st[i].b = i*10;
}
array = (float *)st;
for(i=0; i<20; i++)
printf("%f\n",array[i]);
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.