home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:12217 comp.programming:2282
- Newsgroups: comp.lang.c,comp.programming
- Path: sparky!uunet!mcsun!sunic!ugle.unit.no!venaas
- From: venaas@siri.unit.no (Stig Venaas)
- Subject: Re: A LITTLE BRAINTEASER...
- Message-ID: <1992Aug12.130437.1465@ugle.unit.no>
- Sender: news@ugle.unit.no (NetNews Administrator)
- Organization: University of Trondheim
- References: <aet.713608023@munagin>
- Date: Wed, 12 Aug 92 13:04:37 GMT
- Lines: 13
-
- It's easy I think.
-
- First you use your code for reversing all the input, then
- afterwards you use your code for reversing each line.
- The result is that each line is in the original order, but
- the order of the lines are reversed.
-
- You could also do it the other way around.
- The answer is, use your two routines in succesion. Which one you
- uses first is not important.
-
- --
- Stig (venaas@siri.unit.no)
-