FUNCTIONS Now lets incorporate this function into a program. /* - TopicsExpress



          

FUNCTIONS Now lets incorporate this function into a program. /* Program illustrating a simple function call */ #include void print_message( void ); /* ANSI C function prototype */ void print_message( void ) /* the function code */ { printf("This is a module called print_message. "); } main() { print_message(); } Sample Program Output This is a module called print_message. To call a function, it is only necessary to write its name. The code associated with the function name is executed at that point in the program. When the function terminates, execution begins with the statement which follows the function name.
Posted on: Tue, 30 Jul 2013 11:34:31 +0000

Trending Topics



Recently Viewed Topics




© 2015