> Online tutorial : function types in c
Showing posts with label function types in c. Show all posts
Showing posts with label function types in c. Show all posts

function types in c

No argument and no return type:

#include

#include

void printline();

void main()

{

int a;

clrscr();

printline();

printf("\nthis is world\n");

printline();

getch();

}

void printline()

{

int i;

for(i=1;i<=40;i++)

printf("-");

}

getch();