/* ////////////////////////////////////////////////////////////////// // Sample #1 // A sample Program to see a function work! ////////////////////////////////////////////////////////////////// */ #include void hello( void ); int main (){ hello(); return 0; } void hello( void ){ printf("Hello\n"); } ----------------------------cut here-------------------------------- /* ////////////////////////////////////////////////////////////////// // Sample #2 // A sample Program to see WHEN a function works! ////////////////////////////////////////////////////////////////// */ #include void hello( void ); int main (){ printf("I just entered main.\n"); printf("Now I'm going to call the hello function.\n"); hello(); printf("I called Hello. Did anything happen?\n"); printf("When did it happen?\n"); return 0; } void hello( void ){ printf("Welcome to the Hello Function: Hello!\n"); }