I am a beginner in c and would like someone tp help me . My question is why I have to write void before main to execute the c program.
#include<stdio.h>
void main()
clrscr();
{
printf("Hello")
}
This is a very simple program. But I am unable to execute it if I don't write void before main().