/* struct0.c basic use of a structure */ #include #include #define NAME_LEN 40 struct person { char name[NAME_LEN+1]; float height; }; int main( void ) { struct person p; strcpy( p.name,"suzanne" ); p.height = 60; printf( "name = [%s]\n",p.name ); printf( "height = %5.2f inches\n",p.height ); } // end of main()