Path: utzoo!attcan!uunet!ingr!crossgl From: crossgl@ingr.UUCP (Gordon Cross) Newsgroups: comp.lang.c Subject: Re: Question about int result of relational operator Message-ID: <2805@ingr.UUCP> Date: 2 Nov 88 14:22:01 GMT References: <787@gtx.com> Distribution: na Organization: Intergraph Corp. Huntsville, Al Lines: 12 In article <787@gtx.com>, randy@gtx.com (Randy D. Miller) writes: > I've seen conflicting information about the int result of a relational > operator in which the condition is satisfied. Does it evaluate to > exactly one, or just "non-zero" ? According to the proposed ANSI standard, the result of the operations <, >, <=, >=, ==, !=, &&, and || has type "int" and a value of precisely zero or one. Hope that helps! Gordon Cross Intergraph Corp. Huntsville, AL