Ask Experts Questions for FREE Help !
Ask
    hammka's Avatar
    hammka Posts: 1, Reputation: 1
    New Member
     
    #1

    Sep 15, 2009, 05:54 PM
    Operators that can replicate functions
    What other operator besides #, can successfully replicate the functions "AND", "OR", and "NOT"?
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #2

    Sep 16, 2009, 07:32 AM

    Are you talking about a computer language?
    akotoh's Avatar
    akotoh Posts: 20, Reputation: 1
    New Member
     
    #3

    Sep 20, 2009, 07:07 AM

    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. :)
    jcaron2's Avatar
    jcaron2 Posts: 986, Reputation: 204
    Senior Member
     
    #4

    Sep 21, 2009, 08:00 AM

    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).

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

How to solve trig functions applications for advanced functions? [ 2 Answers ]

A point on the ocean rises and falls as wave pass Suppose that a wave passes every 4 s, and the height of each wave from the crest to the trough in 0.5 m. a) how do we graph the height of the point relative to tis average height for a complete cycle, starting at the crest of a wave. And how do...

Vote could open 250 L.A. Schools to outside operators [ 2 Answers ]

Wow, good for L.A. Now why in the world would LA schools reach this decision?

Yard King riding lawn mower operators manuel [ 1 Answers ]

:confused:I want to try and locate an owners manual for a Yard King Performance riding lawn mower. Model#50565x89, Code#7357, Serial#s001065730266. Any clues?

If then statement using relationship operators [ 1 Answers ]

Hi everyone, I'm trying to create a console application where a user enters 5 numbers and then the application gives them back the smallest and the largest number. However, I can't get my code to work. Here is what I have so far. Thank you to anyone that can help. Module Module1 ...

Operators Manual [ 2 Answers ]

I need an operating manual for a GE range that is in the house I just bought. I need help setting the temp for the oven. I push the button for bake, then try to set the temp. The temp jumps from 170 to 550. If you can tell me what the procedure is that would be fine. Otherwise, please tell me...


View more questions Search