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

21st Jan 2017, 4:31 PM
धुंआधार • दुनियादार • व्यापार
धुंआधार • दुनियादार • व्यापार - avatar
5 Antworten
+ 8
A function can return an array with two values.
21st Jan 2017, 4:59 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 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.
21st Jan 2017, 4:38 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
two values,for me ,I won't use return
4th Feb 2017, 2:33 AM
lwbh
lwbh - avatar
0
A function can return an array with two values.
10th May 2018, 10:42 AM
senator mobile
senator mobile - avatar
0
نظر
10th May 2018, 10:43 AM
senator mobile
senator mobile - avatar