C++主函数返回值有关问题

C++主函数返回值问题
如果主函数为:
int main()1
{
  return 1;//这里的返回值有什么实际作用和意义?如果随便写,对程序有影响吗?有什么影响?
}

------解决方案--------------------
每个函数都要有一个返回值。(返回类型void的函数的返回值可以使return,或者也可以不写)
//这里的返回值没有任何意义,这是语法规则上的需要,就是既然主函数的返回类型为int,那么就应该返回一个int型整数。如果写成非1的任何整数都可以,没任何影响。
int main()1//这里没有1哦 否则会出错误。
{
return 1;
}
------解决方案--------------------
return [expression];

The return keyword terminates execution of the function in which it appears and returns control (and the value of expression if given) to the calling function. A function returns an integer value by default. To define other types of return values, the name of the function is preceded by the type. If the function is type void, the return statement is omitted.