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

int main ()
{
	// myStruct is a type that has 2 fields
	struct myStruct{
		int AnInt;
		float AFloat;
		
	};
	// create an alias named myStructType from the old name "struct myStruct"
	typedef struct myStruct myStructType;
	// make an instance of myStruct called M using the typedef
	myStructType M;
	// fill in 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;
}