• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between ^ and ||  RSS feed

 
Ranch Hand
Posts: 291
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whats the difference between || or
and ^ xor

i watched a video,they seem to do the same thing..ie run code if one condition is true

 
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jon ninpoja wrote:whats the difference between || or
and ^ xor

i watched a video,they seem to do the same thing..ie run code if one condition is true


Question one. What happens when neither is true?

Question two. What happens when both are true?

Question three. Do you know what short circuiting is?

Henry
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jon ninpoja wrote:. . . i watched a video . . .
Just as when you quote a book, please tell us which video. Either you have misunderstood it, or it is a poor quality video.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!