What other operator besides #, can successfully replicate the functions "AND", "OR", and "NOT"?
![]() |
What other operator besides #, can successfully replicate the functions "AND", "OR", and "NOT"?
Are you talking about a computer language?
In creating a program,
'and' is the same as '&&'
'or' is the same as '||'
'not' is the same as '!'
As far as I know, they are called as the LOGICAL OPERATORS. :)
As Perito pointed out, the answer to that question completely depends on what language you're talking about. Examples: C/C++, Java, Matlab, Fortran, Pascal, etc.
The examples you gave are consistent with C, and as far as I know those are the only logical operators except in the case of bitwise operations where you have ~ (not), & (and), | (or), and ^ (xor).
All times are GMT -7. The time now is 06:15 AM. |