+ 1
Why can't a function return two values ?
i was making a function to output two values for one argument. if it is possible then how?
5 ответов
+ 8
A function can return an array with two values.
+ 7
If it's merely to output values, you may use a void function to do calculation and then print the values.
* Perhaps revealing a partial section of your code may grant more constructive answers to come.
+ 1
two values,for me ,I won't use return
0
A function can return an array with two values.
0
نظر