Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

为什么有的时候不是 return 0程序也能正常工作?

+4 votes
asked Jan 16, 2025 by ??? (160 points)
今天在编程时,我把 return 0改成了 return 993283,发现没有问题。是为什么?

3 Answers

+1 vote
answered Jan 16, 2025 by Peter Minarik (101,420 points)
Please, post in English. (Google Translate makes no sense to your post.)
0 votes
answered Jan 22, 2025 by Lynx Midori (140 points)

that's because the main function is usually declared as *int* main(), so as long as you're returning an integer it won't be a problem.

这是因为 main 函数通常被声明为 int main(),所以只要返回一个整数就不会出现问题。
0 votes
answered Jan 23, 2025 by chris336 (150 points)
hi my frends am new at these game? what rank are you?
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...