Hi
frequently I see mentioned the fact that we should use int main () and not void main().....the trouble here is that some of us here are doing a distance learning course in c programming....where the course provider frowns upon and deducts marks for using int main ()....unless we are passing a value back to the opsys. I personally use int main ()....cause DevC++ wont allow void main and numerous times I have returned exercises...forgetting to change back to void main() after pasting from the compiler...I now have TurboC++ which allows use of void main....
The point is when people constantly correct newbies who use void main (), think about what there teacher might advocate as correct or not correct. I don't want to start a great debate as to which is correct or not....just to think on which may be correct for the particular post.![]()



LinkBack URL
About LinkBacks




. Another thing I don't have to worry about. Anyway, standards are fine, but are a bit of a pipe dream - sure they sound good in theory, but in reality if you port your code, you'll have to change it one way or the other.