1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lisa [10]
3 years ago
13

Is the expression a || b the same as a && !b

Computers and Technology
2 answers:
mr_godi [17]3 years ago
8 0
Most definitely not! A || B is A OR B, if A is true OR B is true, the statement will be true. A && !B is A AND !B, only if A is true AND B is false will the statement be true. With OR, B can be true and the statement will pass.
Maru [420]3 years ago
4 0
You could test it
case (1)
a =true, b=false
true || false    = true
true && !false = true
PASSED! 

a=false b= true
false || true     = true
false && !true = false
FAILED!

also try a=true, b =true

so the it is not the same
You might be interested in
You can use the bash shell to redirect standard output or standard error from the terminal screen using the ____ shell metachara
Vlad1618 [11]
You can use the > (greater than) symbol
3 0
3 years ago
Types of Computer games​
kiruha [24]

\bold{Hello}~

\bold{Answer:}

<h3>Types of Computer games</h3>
  • Action
  • Adventure
  • Simulation
  • Sports
  • Role-playing
  • Puzzlers
  • Party games

<em>(</em><em>That's</em><em> </em><em>all</em><em> </em><em>i</em><em> </em><em>know</em><em>)</em><em> </em>

<h2>#Hopeithelps\:</h2>

\bold{-Kei}~

\tiny\sf\purple{ ♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡♡ }

5 0
3 years ago
Select the correct answer.
WINSTONCH [101]

i think its B) Theme

7 0
3 years ago
Network is a process by which several protocols evolve to form a single product.
astraxan [27]

Answer:

Is this like a true or false thing or just a statement?

6 0
3 years ago
Ask the user to input an integer. Print out the next three consecutive numbers.
Fed [463]

I've included my code in the picture below. Best of luck.

5 0
3 years ago
Other questions:
  • What is computer virus?
    8·1 answer
  • Define a function setheight, with int parameters feetval and inchesval, that returns a struct of type heightftin. the function s
    6·1 answer
  • If you cause a car accident, which type of insurance will require you to pay the least out of pocket?
    5·2 answers
  • What is a benefit of the Name Manager feature?​
    12·2 answers
  • Which of the following is a benefit, as well as a risk, associated with peer-to-peer networks?
    6·2 answers
  • What are the top ten alternative songs of the 2000's?
    7·1 answer
  • What does IDLE stand for
    11·2 answers
  • What is the orbit? Define
    12·1 answer
  • The sun can be an excellent source of natural light.<br> True.<br> False.
    8·2 answers
  • PLEASE HELP
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!