what if I choose to return none zero value to main in cpp
i tried to return 1 and -1 with return statment in cpp their is nothing affect my simple programm which is just work fine only the excution window tells me that the main had returned the pre specified value i tried to re build the file before excute everytime i change the value of return my question is where or when none zero vlaue will cause a problem to my code??? and is there a place where i need to use this none zero value in programming ?? my simple lines #include <iostream> using namespace std; int main (void) { /* this programm include my attempt day one in my cpp quest */ /*calculate the pages per day for cpp essentials book */ int total_pages = 311; int total_quest_days =7; float total_days_per_day; total_days_per_day = total_pages/total_quest_days; cout<< "pages per day is =" << total_days_per_day << endl; return -1; }