Thanks a lot guys
Sam
User Profile
Collapse
-
How to return 2 or more values?
Hi guys
I just want to know how I can return more than one value in a function.
For example I send tow integers to my function and then I do some operation on them then I want to send them back again. It means in my last line of my function I have:
return a, b;
Is it possible? Why its not working? And if its possible how I can get them back in my main function?Last edited by sicarie; Aug 27 '07, 03:22 PM. Reason: Do more question marks mean it's a deeper question? I don't think so.
No activity results to display
Show More
Leave a comment: