Write a program of function with no argument and no return type.

Write a program of function with no argument and no return type.

 

#include<stdio.h>

#include<conio.h>

void abc();

void main()

{

 clrscr();

printf("abc\n");

abc();

getch();

}

void abc()

{

printf("xyz");

}

================================================ 

 

Output:

 

abc

xyz


Comments