+ 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?

26th Jul 2020, 2:17 AM
asdrewq
2 ответов
+ 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
26th Jul 2020, 2:48 AM
VIRTUAL
VIRTUAL - avatar
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.
26th Jul 2020, 2:38 AM
Raul Sanchez
Raul Sanchez - avatar