?
Solved

Logical OR Operator in Project Builder

Posted on 2003-03-02
1
Medium Priority
?
222 Views
Last Modified: 2013-12-26
Hi All,

I'm a beginning programmer learning C on my Mac using Project Builder.  Recently, I've run across a problem using the logical OR operator "||".

When I try to use the || operator in an if-statement, such as

if (x == 0) || (y == 1)

Project Builder doesn't recognize the || operator and gives me an error.

What am I doing wrong?
0
Comment
Question by:tsb050
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
redgate earned 200 total points
ID: 8060942
if (x == 0) || (y == 1)

should be

if( (x == 0) || (y == 1) )
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question