Code:
void main()
{
....
}
Is considered bad programming because the ANSI C standard specifies that the return type of main() must be int. However, most compilers will let you off with a warning.

Cheers,
cgkanchi