#include <stdio.h>
#include <stdlib.h>

int main ()
{
	// myStruct is a struct type that has 2 fields
	typedef struct{
		int AnInt;
		float AFloat;
	} myStruct;
	// make an instance of myStruct called M using the typedef
	myStruct M[3] = {{1, 1.5f}, {2, 2.5f}, {3, 3.5f}};
	int index;
	for (index = 0; index < 3; index++)
		printf ("M[%d] has values:\n AnInt=%d\n AFloat=%f\n",
				index, M[index].AnInt, M[index].AFloat);
				
	return 0;
}