Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #4922

Re: returning more than one value

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: returning more than one value
Date 2011-05-28 12:17 -0700
Organization None to speak of
Message-ID <lnd3j2tz2o.fsf@nuthaus.mib.org> (permalink)
References <4de14540$0$1930$bbae4d71@news.suddenlink.net>

Show all headers | View raw


"Bill Cunningham" <nospam@nspam.invalid> writes:
>     I came across a tutorial the other day that said a function can return 
> more than one value. How is this done? Pointers. Can someone please show me 
> an example.

Isn't there an example in the tutorial?

> an example. Say I want to return a double or an int.

Don't you mean a double *and* and int?  Have you misunderstood what it
means to return more than one value?

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

returning more than one value "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-28 14:55 -0400
  Re: returning more than one value Keith Thompson <kst-u@mib.org> - 2011-05-28 12:17 -0700
    Re: returning more than one value "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-28 15:26 -0400
  Re: returning more than one value "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-28 15:31 -0400
  Re: returning more than one value Joe Wright <joewwright@comcast.net> - 2011-05-28 15:33 -0400
    Re: returning more than one value Keith Thompson <kst-u@mib.org> - 2011-05-28 15:52 -0700
    Re: returning more than one value Kenneth Brody <kenbrody@spamcop.net> - 2011-05-31 12:15 -0400
  Re: returning more than one value "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-28 15:34 -0400
    Re: returning more than one value Keith Thompson <kst-u@mib.org> - 2011-05-28 15:45 -0700
  Re: returning more than one value Shao Miller <sha0.miller@gmail.com> - 2011-05-28 15:09 -0500
    Re: returning more than one value "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-28 16:14 -0400
  Re: returning more than one value "Morris Keesan" <mkeesan@post.harvard.edu> - 2011-05-28 16:32 -0400

csiph-web