When I use void main in the code it compiles successfully but gives an runtime error on gcc compiler..But when void is replaced by int then it doesnot show any errors.What is the reason behind this behaviour?
This is a discussion on runtime error for using void main in gcc compiler within the C Programming forums, part of the General Programming Boards category; When I use void main in the code it compiles successfully but gives an runtime error on gcc compiler..But when ...
When I use void main in the code it compiles successfully but gives an runtime error on gcc compiler..But when void is replaced by int then it doesnot show any errors.What is the reason behind this behaviour?
Originally Posted by phantomotap