In short, I'm using Microsoft Visual Studio 2012, programming in C++. My main method has a while(1)
repeating a bit of code, and never leaves the loop.
Microsoft Visual Studio is allowing me to compile without a return value for the main method, even though it's declared int main(int argc, char** argv)
. Is this standard for other compilers, or just a "feature" of Microsoft Visual Studio?
I realize I never get to the code that returns a value, but should I just thrown on a return 0; at the end anyway?