delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/22/16:39:20

From: wcount12 AT aol DOT com (WCount12)
Newsgroups: comp.os.msdos.djgpp
Subject: Logical Operator Problem
Lines: 23
NNTP-Posting-Host: ngpost-m2.news.aol.com
X-Admin: news AT aol DOT com
Date: 22 May 2002 20:13:34 GMT
Organization: AOL, http://www.aol.co.uk
Message-ID: <20020522161334.18792.00000036@mb-dd.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have loaded DJGPP compiler onto my system running
Windows ME and using the Rhide interface.

If I use the " || " (OR logical operator) I get the following error msg.

"Error: stray ' \355' in program".

If I use the " && " (AND logical operator) the program compiles without
a problem. The simple program is below.

#include <stdio.h>

int main()
{
  int a = 12;

  if( a >= 4 || a <= 15)
    printf("A is valued between 4 and 15");
}

Appreciate your help.

Paul Warren

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019