home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11743 < prev    next >
Encoding:
Text File  |  1992-07-29  |  786 b   |  30 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!darwin.sura.net!jvnc.net!gmd.de!Germany.EU.net!mcsun!sunic!seunet!swbull!hemulen.bull.se!elias
  3. From: elias@proxxi.se (Elias M}rtensson (proxxi))
  4. Subject: Re: Functions Within Functions
  5. Message-ID: <1992Jul30.005417.3305@proxxi.se>
  6. Organization: proxxi
  7. References: <Bs5w39.5ox@news.larc.nasa.gov> <1992Jul29.235330.2027@proxxi.se>
  8. Date: Thu, 30 Jul 1992 00:54:17 GMT
  9. Lines: 19
  10.  
  11. >int foo()
  12. >{
  13. >    int bar( int a ) { return a + 20; }
  14.  
  15. >    printf( bar( 10 ) );
  16. >}
  17.  
  18. I am propaly going to get flames for this, but i just had to correct
  19. my embarrasing mistake:
  20.  
  21. Line 5 should read:
  22. printf( "%d\n", bar( 10 ) );
  23.  
  24. Sorry for wasting bandwidth. It's not going to happen again.
  25.  
  26. ###################
  27. # Elias Martenson #
  28. # elias@proxxi.se #
  29. ###################
  30.