void in c
When void is used as a function return type, it indicates that the function does not return a value, unlike int ot just main()which delivers a return value.
for example
#include<stdio.h>
#include<conio.h>
main()
{
printf("Hello World");
return 0;
}
output:
Hello World
process exited after 10.21 seconds with return value 0
Source code 2
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("Hello World");
getch();
}
output:
Hello World