Print information out in a function - C Function

C examples for Function:Function Definition

Description

Print information out in a function

Demo Code

#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 );
   }
}

Related Tutorials