method of returning more than one value from a function

Discussion in 'C' started by ankitsjain, Sep 15, 2012.

  1. ankitsjain

    ankitsjain New Member

    Joined:
    Sep 9, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    telll me the methode by which we can return more than one value at a time from a given function???
    please give me ans as soone as possible
    :happy:
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Return Array of elements or even structure containing more than one element.
     
    ankitsjain likes this.
  3. Rajesh M. Kanojia

    Rajesh M. Kanojia New Member

    Joined:
    Dec 9, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    INDIA
    u should use pointer.
    because return keyword return only one value at a time but using pointer u can directly access the no. of value not only accessing but also can modify.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice