Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!PRIME-A.POLY-SOUTH-WEST.AC.UK!S61304 From: S61304@PRIME-A.POLY-SOUTH-WEST.AC.UK (Rat) Newsgroups: comp.sys.atari.st Subject: C question Message-ID: <8912050802.AA12717@ucbvax.Berkeley.EDU> Date: 4 Dec 89 20:54:03 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 43 (From "The Masked Rat Fink" "Computing and Informatics Yr4") Question. (This is probably a really silly one to any C wizards, but I'm only a BASIC wizard!) Why wont Sozobon, Lattice or any other C compiler I've tried compile the following, from K&R? main() $ char fred[] = "Some string constant"; This has been confusing me for a while, as K&R (surely correct!) would seem to indicate that this is indeed permissible! Your observations would be very much appreciated! Please reply to the net as the mailer I'm forced to use is _MEGA_ brain damaged!! :-( TMRF [A Rat with a very small brain] - Appologies to A.A. Milne :-) PS I've actually met Christopher Robin! Does that make me famous?? %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % Simon Chappell (The Masked Rat Fink) % % Computing and Informatics (Final Year), Polytechnic South West (Plymouth) % % % % "Better the pride that resides, in a citizen of the world, % % than the pride that divides, when a colourful rag is unfurled." % % - Neil Peart (RUSH) % % % % JANET S61304@uk.ac.psw.pa % % BITNET S61304@pa.psw.ac.uk % % INTERNET S61304%uk.ac.psw.pa@nsfnet-relay.ac.uk % % % %Disclaimer: I have no opinion, my wife wouldn't let me! % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%