User Profile

Collapse

Profile Sidebar

Collapse
group256
group256
Last Activity: Sep 8 '07, 03:15 PM
Joined: Aug 25 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • group256
    replied to How to return 2 or more values?
    in C
    Thanks a lot guys

    Sam
    See more | Go to post

    Leave a comment:


  • group256
    started a topic How to return 2 or more values?
    in C

    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?
    See more | Go to post
    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
Working...