main() functions return value?

后端 未结 5 1968
夕颜
夕颜 2020-11-30 13:27

Anyone please tell me where the main() function of the \'C\' language returns its value?

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 13:36

    The main function is at libery to return its value at any point at which it pleases. You simply write:

    return my_return_value;
    

    and it's game over.

提交回复
热议问题