Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!sun-barr!apple!portal!cup.portal.com!ts From: ts@cup.portal.com (Tim W Smith) Newsgroups: comp.lang.c Subject: Speaking of hard to find errors... Message-ID: <41388@cup.portal.com> Date: 18 Apr 91 06:56:46 GMT Organization: The Portal System (TM) Lines: 20 Here's a code fragment that can cause a lot of grief: struct spam { ... } /* Oops! Forgot semicolon! */ function() { ... } The programmer is letting the return type of the function default to int, but the missing semicolon makes this instead become a function that returns a struct spam. Depending on how your compiler implements structure return, results can range from callers of function getting wrong return values to a trashed stack. Tim Smith