home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C by Discovery (4th Edition)
/
C_By_Discovery_4th_Edition.tar
/
C_By_Discovery_4th_Edition
/
_DISK_
/
ch1
/
shortsub.c
< prev
next >
Wrap
C/C++ Source or Header
|
2005-06-16
|
473b
|
21 lines
/* shortsub.c
*
* Synopsis - Control is passed from the function main() to the
* function sub_funct() and back.
*
* Objective - Illustrates a subfunction and function call.
*
*/
void does_nothing( void ); /* Note 1 */
int main(void)
{
does_nothing(); /* Note 2 */
return 0;
}
void does_nothing(void) /* Note 3 */
{
}