Computer Science, asked by aditioraon637, 2 months ago

In C programming Determine the value of each of the following logical expressions if a=5, b=10 and

c= -6 and justify it.

(a.) a>b && a<c

(b.) a<b && a>c

(c.) a==c || b> a

(d.) b> 15 && c<0 || a>0

(e.) (a/2.0 ==0.0 && b/2.0!=0.0 || c< 0.0​

Answers

Answered by IIitsAnantMishraII
6

Answer:

This reads as a typical homework question. If it is, you should probably stop sabotaging your own education and just do your assignment.

On the off chance it’s not, logical AND evaluates before logical OR. Therefore, we can immediately simplify things to mean b > 15 && c < 0 || true. Since the OR operator only becomes false when both sides are false, the expression always evaluates to true, so you don’t even have to take the rest of the expression into account.

Answered by AarthyKalidass
1

Answer:

We can quickly simplify things to imply b > 15 && c 0 || true. Because the OR operator only becomes false when both sides are false, the expression always evaluates to true, hence the remainder of the expression is unnecessary.

Explanation:

What is programming?

The process of producing a set of instructions that tells a computer how to complete a task is known as programming. Computer programming languages such as JavaScript, Python, and C++ can be used to create programmes. Coding is a branch of programming that deals with creating machine-readable codes. Programming is a procedure that involves the confirmation of codes in order to develop programmes. Coding necessitates fundamental programming knowledge without the use of any software tools. Because so much of our world is automated nowadays, computer programming is essential. Humans must be able to govern the interaction between humans and robots. We use computer programming to harness the processing power of computers and machines since they are so efficient and accurate.

To know more about programming, check out:

https://brainly.in/question/642838

To  know more about software, check out:

https://brainly.in/question/16091440

#SPJ3

Similar questions