C examples for Function:Function Definition
Print information out in a function
#include <stdio.h> void print_function( char star ); int main( void ) { char star;/*from w ww . jav a2 s .co m*/ print_function( star ); return 0; } void print_function( char star ) { char dash; for (int ctr = 0; ctr < 25; ctr++ ) { printf( "%c%c", star, dash ); } }