what exactly is the difference between int main() and void main()

I am new to software languages..Please explain me the difference between
int main(){
}

and

void main(){

}
Since the standard dictates that main has to return int, the first one is correct C++ and the second one is not.
Topic archived. No new replies allowed.