Need help specific on boolean operators

This is a discussion on Need help specific on boolean operators within the C Programming forums, part of the General Programming Boards category; Anyone may explain to me about boolean operators, I am a newbie in C programing and I not understand what ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    3

    Question Need help specific on boolean operators

    Anyone may explain to me about boolean operators, I am a newbie in C programing and I not understand what it says in the C programing tutorial on this site
    May anyone also give me a guide
    MSN = adrianneow96@yahoo.com
    facebook = adrianneow96@hotmail.com
    Skype = adrianneow96@yahoo.com
    Please.... I really wanna learn...

  2. #2
    Registered User
    Join Date
    Sep 2008
    Posts
    200
    Is there something specific you're having a problem with? Your question is very general, and could only really be answered by writing another tutorial on boolean operators, which might just lead you back to the same problem...

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    In a nutshell booleans are switches... they are either OFF (false, 0) or ON (true, non-0) ... no other state is valid.

    Code:
    BOOL a;
    
    if (a)   // if a != 0
     DoThis();
    else    // a must be 0
     DoThat();
    
    
    while (a)          // keep doing this until a is 0
      DoThisThing();
    Of all the crap in programming, this is just about the easiest!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Boolean Operators...
    By Nean in forum C++ Programming
    Replies: 8
    Last Post: 10-06-2009, 02:31 AM
  2. C++ and Boolean Operators
    By Rockskin in forum C++ Programming
    Replies: 3
    Last Post: 03-13-2006, 02:45 PM
  3. Boolean operators
    By Trogdor27 in forum C++ Programming
    Replies: 10
    Last Post: 09-12-2005, 06:46 AM
  4. boolean operators
    By bj31t in forum C++ Programming
    Replies: 5
    Last Post: 03-30-2004, 07:34 PM
  5. Boolean Operators?
    By civilwarsearch in forum C++ Programming
    Replies: 11
    Last Post: 12-15-2003, 08:50 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21