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

int main()
{
	// myStruct is a type that has 2 fields
	typedef struct{
		int AnInt;
		float AFloat;
	} myStruct;
	// make an instance of myStruct called M using the typedef
	myStruct M;
	// fill its fields and print them
	M.AnInt = 1;
	M.AFloat = 1.2f;
	printf ("M has values:\n AnInt=%d\n AFloat=%f\n",
			M.AnInt, M.AFloat);
	return 0;
}