How many values can be returned by a function 2024?

Jackson Taylor | 2023-05-05 05:47:15 | page views:1793
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Madison Brown

Studied at Harvard University, Lives in Boston.
You can't return two values. However, you can return a single value that is a struct that contains two values. You can return only one thing from a function. Either you make a struct which contains all the things you want to return, or you pass some function parameters by reference.
2023-05-07 05:47:15

Sophia Nguyen

QuesHub.com delivers expert answers and knowledge to you.
You can't return two values. However, you can return a single value that is a struct that contains two values. You can return only one thing from a function. Either you make a struct which contains all the things you want to return, or you pass some function parameters by reference.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4