Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!rochester!pt.cs.cmu.edu!MARCOZ.BOLTZ.CS.CMU.EDU!marcoz From: marcoz@MARCOZ.BOLTZ.CS.CMU.EDU (Marco Zagha) Newsgroups: comp.lang.c Subject: Re: Portability help Keywords: portability, MS-DOS, UNIX, wierd, core dump, strings, chars Message-ID: <4261@pt.cs.cmu.edu> Date: 13 Feb 89 14:47:36 GMT Organization: Carnegie-Mellon University, CS/RI Lines: 19 In article <376@lakesys.UUCP> davek@lakesys.UUCP (Dave Kraft) writes: [...] > main() > { > char a, b, c, d, e; > > [...] > > printf("\n>>%s<<", &a); > [...] > } As far as your core dump problem goes, you are trying to treat the address of a single character as a string. A string (in the printf sense) is a pointer to a NULL TERMINATED string of characters. You should be using the %c specifier as in other parts of your code. == Marco (marcoz@cs.cmu.edu) --