Function Prototype Declaration
The function print_stars has one parameter vol of type int and returns no value.
Prototype: (prototype ends with a semicolon)
void print_stars(int vol);
Function definition:
void print_stars(int vol)
{
while(vol-- > 0)
putchar('*');
}
Previous slide
Next slide
Back to first slide
View graphic version