Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!ditmela!yarra!bacchus!matt From: matt@bacchus.esa.oz (Matthew Atterbury) Newsgroups: comp.sys.apollo Subject: trivia Message-ID: <643@bacchus.esa.oz> Date: 3 May 90 03:00:56 GMT Reply-To: matt@bacchus.esa.oz (Matt Atterbury) Organization: none Lines: 21 Trivia fans! the following compiles and runs fine on Apollo DN3500 SR10.2 ... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #include main(argc, argv) int argc; char* argv []; { int i; i = (argc > 1 ? argc ; 0); printf("well, i = %d\n", i); } -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Note the ';' instead of the ':' in the ?: expression - it is treated as if it was a ':' ... why is this so? -- ------------------------------------------------------------------------------- Matt Atterbury [matt@bacchus.esa.oz.au] Expert Solutions Australia, Melbourne UUCP: ...!uunet!munnari!matt@bacchus.esa.oz.au "klaatu barada nikto" ARPA: matt%bacchus.esa.oz.AU@uunet.UU.NET "life? don't talk to me about life!"