Why not in most beginner C++ exercises there is no built-in return 0; ?
Hi, how are you, I'm new to programming, I'm starting to practice C++ since I'm starting university this year! I have seen various practice exercises, and so far I have not come across With return 0; And I look at a lot of comments saying that the exercises should be wrong since this variable is not there, and they emphasize that it is something important that should not be forgottenCould you tell me what you mean? So far what I have learned the exercises go like this: #include <iostream> using namespace std; int main ( ) { xxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxxx } (The x's are for example only) Now, I look at comments saying that return 0; goes under int main ( ) { can someone tell me why? This is true? What does it influence and what does said variable mean, thank you very much and I hope Do not disturb, I am new but with too much interest in this and I give it due seriousness.