IHYPRESS PROGRAMMING
Tutorials and C programs with code and output for beginners
c programming
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
CSimple Functions : No Argument / No Result
<05.01>
/* A user-defined function without argument nor result */
#include <stdio.h> /* the function definition */ void stars (void) { printf ("********************************\n"); } /* end of function definition */ /* main program */ int main (void) { printf ("The line of stars comes from a function.\n"); /* calling the function */ stars (); /* the function can be called as will*/ printf ("\n"); stars (); printf ("Hello world!\n"); stars (); return (0); }
Hergestellt in Deutschland / Made in Germany
The line of stars comes from a function. ******************************** ******************************** Hello world! ********************************
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland