Do-While trouble comparing multiple characters via logical OR.

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 409 Views - Last Post: 05 February 2018 - 02:42 PM Rate Topic: ***-- 2 Votes

#16 CVRIV   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 38
  • Joined: 03-February 18

Re: Do-While trouble comparing multiple characters via logical OR.

Posted 05 February 2018 - 07:17 AM

Wow. I completely get it now. LOL. It's bit logic. I know this. I just got done with a class in microcomputers so I did a lot of programming in assembly. I'm just not used to coding like this. I mean I used to code a lot of Javascript waaaay back in the day but back then I didn't knowing anything about bit logic.

I couldn't get a false output because both expressions couldn't be false at the same time. I get it.

Thanks.

P.S. I apologize for saying your not friendly Snoopy.
Was This Post Helpful? 0
  • +
  • -

#17 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1467
  • View blog
  • Posts: 4,726
  • Joined: 20-March 10

Re: Do-While trouble comparing multiple characters via logical OR.

Posted 05 February 2018 - 10:42 AM

Dude,

its not bitwise logic its GATE logic,

please use the correct terms to describe things bitwise AND in C/++ is & OR is |

conversely && is the GATE logical AND while || is the GATE logical OR.

Regards...
Was This Post Helpful? 0
  • +
  • -

#18 CVRIV   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 38
  • Joined: 03-February 18

Re: Do-While trouble comparing multiple characters via logical OR.

Posted 05 February 2018 - 02:42 PM

Sure.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2