Programmers generally use a
int main()
or a
void main()
Every function should return a type. Either a success status or a failure status. Even main is a function and should return a type.
It is not advisable to use void main(). It should always be int main().
A void main() means it returns no status after execution. With respect to programming, it is not a good practice!