/* * tourfunc1.c * * show how to create a user defined function that takes nothing and returns nothing. */ #include void question(void) // function header { // start of funciton definition printf("Four ways to get answers to questions in C:\n"); printf("1) Check the index of this book\n"); printf("2) Visti a website such as http://www.muster.com\n"); printf("3) Explore an alternate text for a different view\n"); printf("4) E-mail or contact a teacher\n"); } int main(void) // main header { // start of main funciton puts("This program employs a function"); question(); system ("sleep 2"); question(); system ("sleep 2"); question(); return 0; }