Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!uwm.edu!marque!carroll1!dnewton From: dnewton@carroll1.UUCP (Dave 'Yes, I'm weird' Newton) Newsgroups: comp.lang.c Subject: Help... Message-ID: <731@carroll1.UUCP> Date: 9 Oct 89 23:26:06 GMT Reply-To: dnewton@carroll1.cc.edu (Dave 'Yes, I'm weird' Newton) Organization: Carroll College-Waukesha, WI Lines: 20 Why doesn't this work? ========================== #include main () { char h[]; scanf ("%s", h); printf ("%s\n", h); } ========================== It seems innocent enuf, but just prints garbage. I'm missing something obvious, but I'll be darned if I know what it is. -- David L. Newton | dnewton@carroll1.UUCP | Quote courtesy of (414) 524-7343 (work) | dnewton@carroll1.cc.edu | Marie Niechwiadowicz, (414) 524-6809 (home) | 100 NE Ave, Waukesha, WI 53186 | Boston College. [Q]: How many surrealists does it take to screw in a light bulb? [A]: The fish.