home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!hp-cv!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.cis.ohio-state.edu!ychung
- From: ychung@news.cis.ohio-state.edu (yiu fai chung)
- Newsgroups: comp.lang.c
- Subject: How can I return two value to a procedure ???
- Message-ID: <9207222041.AA00524@honeydew.cis.ohio-state.edu>
- Date: 22 Jul 92 12:41:50 GMT
- Article-I.D.: honeydew.9207222041.AA00524
- Sender: ychung@cis.ohio-state.edu (yiu fai chung)
- Organization: The Ohio State University Department of Computer and Information Science
- Lines: 10
-
- I would like to return two values of two variables.
- How can I do that ?
-
- This is what I wrote:
- void change_value( int *i, int *j )
- {
- *i = 2;
- *j = 3;
- return (*i, *j);
- }
-