home *** CD-ROM | disk | FTP | other *** search
- struct screencoords
- {
- int x;
- int y;
- } coords;
-
- void printcoords( struct screencoords *val );
-
- main()
- {
-
- coords.x = 100;
- coords.y = 200;
-
- printcoords( &coords );
-
- }
-
- void printcoords( struct screencoords *val )
- {
- printf( "X coordinate = %d\n", val->x );
- printf( "Y coordinate = %d\n", val->y );
- }