Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!rochester!udel!princeton!idacrd!desj From: desj@idacrd.UUCP (David desJardins) Newsgroups: comp.lang.c Subject: Re: What is wrong with this code ? Message-ID: <525@idacrd.UUCP> Date: 10 Dec 89 18:14:04 GMT References: <1156@nsscb.UUCP> Organization: idacrd, princeton, nj Lines: 7 From article <1156@nsscb.UUCP>, by nrg@nsscb.UUCP (G.Narotham Reddy): > if (nfile.st_mode & S_IFMT == S_IFREG) What is wrong with this code is that, in this as in so many other examples, C has the world's stupidest precedence for its operators. -- David desJardins