+ 1
Please,what's "return" 's meaning and how can "return" be used?
Please,what's "return" 's meaning and how can "return" be used?
2 Réponses
+ 3
C ++ da, qiymatni qaytarish uchun "return" kalit so'zidan foydalaniladi. Raqam yoki harflar kabi. Agar siz C ++ tilini zo'rg'a o'rganayotgan bo'lsangiz, ehtimol "return 0;" Bu degani, dastur muvaffaqiyatli ishladi va hech qanday xato yo'q edi. Agar sizning dasturingizda muammo bo'lsa, siz xato haqidagi xabarni ko'rasiz va "return 0;" qatorini ko'rasiz. o'tmagan bo'lardi.
Good
0
In C++, the keyword "return" is used to return a value. Such as a number or letters.
If you are barely learning C++, you may have seen "return 0;"
That means, the program ran successfully and there were no errors. If there was a problem with your program, you would see an error message and that line "return 0;" wouldn't have passed.