Organizational Research By

Surprising Reserch Topic

what is the difference between the and or operators


what is the difference between the and or operators  using -'c#,php,operators'

I have always used || (two pipes) in OR expressions, both in C# and PHP. Occasionally I see a single pipe used: |. What is the difference between those two usages? Are there any caveats when using one over the other or are they interchangeable?
    

asked Sep 9, 2015 by rajesh
0 votes
11 views



Related Hot Questions

9 Answers

0 votes
NULL
answered Sep 9, 2015 by rajesh
0 votes
NULL
answered Sep 9, 2015 by rajesh
0 votes
NULL
answered Sep 9, 2015 by rajesh
0 votes
NULL
answered Sep 9, 2015 by rajesh
0 votes
NULL
answered Sep 9, 2015 by rajesh
0 votes
NULL
answered Sep 9, 2015 by rajesh
0 votes
NULL
answered Sep 9, 2015 by rajesh
0 votes
NULL
answered Sep 9, 2015 by rajesh
0 votes
NULL
answered Sep 9, 2015 by rajesh

...