Thread: conditional question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Registered User
    Join Date
    Mar 2020
    Posts
    91
    Here is an unsigned int returned from a function (within a structure)...I am trying to test to see if ANY one of the bits has been set not sure whether to use & or &&???

    Code:
    (swInfo.twoSec & 0x00FE)

    Just figured it out ...thank you!
    used the debugger to see the difference
    Last edited by ridgerunnersjw; 05-05-2020 at 12:25 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to use conditional?
    By abhi143 in forum C Programming
    Replies: 5
    Last Post: 02-22-2020, 08:45 AM
  2. C programming question on Conditional Expressions!
    By n00brammer in forum C Programming
    Replies: 1
    Last Post: 09-20-2015, 11:42 PM
  3. Question about conditional operators ( || vs |)
    By patishi in forum C Programming
    Replies: 2
    Last Post: 10-06-2013, 04:25 AM
  4. conditional
    By bazzano in forum C Programming
    Replies: 9
    Last Post: 03-25-2006, 10:36 AM
  5. Conditional Compile Question
    By nobbyv in forum C Programming
    Replies: 1
    Last Post: 12-05-2005, 10:19 AM

Tags for this Thread