/* Typedef Demonstration Program. */ /* Created for use with Computer Science 101 at USC by Rick Wagner. */ /* Copyright 1999, all rights reserved. */ #include typedef float SingleFloat; typedef double DoubleFloat; /* Function prototypes */ void about(); void demo(); void main() { about(); demo(); } void about() { puts(""); puts(" Typedef Demonstration Program."); puts(" Created for use with Computer Science 101 at USC by Rick Wagner."); puts(" Copyright 1999, all rights reserved."); puts(""); puts(""); } void demo() { SingleFloat sfA = (SingleFloat) 47.35281; DoubleFloat dfA = 39.214736; printf("The value of sfA is: %f\n", sfA); printf("The value of dfA is: %lf\n\n", dfA); }