answersLogoWhite

0

In C, any non-zero expression is true and any zero expression is false.

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
More answers

A Boolean expression.

User Avatar

Wiki User

12y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What expression has a value of either true or false?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How can Boolean be used in Java?

An expression is anything that can be evaluated ("calculated"), to get a value. Numeric expressions are more common: anything that you can calculate, and get a number. For example, if a and b are numbers, a + b will give you another number - it is therefore a numeric expression. The variables by themselves are also numeric expressions.A boolean expression is anything that you can evaluate and get a result that is boolean, i.e., either true or false. Here are some examples:a == ba > ba >= 5 && a ba >= 5 && a ba >= 5 && a ba >= 5 && a


You use the operator to reverse the meaning of a Boolean expression?

The NOT operator. E.g., NOT TRUE evaluates to FALSE while NOT FALSE evaluates to TRUE.


Define an expression that evaluates to true when i equals j?

In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.


Which method is default by true in java?

I don't understand what you mean with "default by true"? Please clarify your question. A Java method can have zero or more parameters, and it must have one return value. Any of these can be declared as "boolean", in which case the value can be either true or false.


Are true false and null Java keywords?

True and false are literals(special built-in value) in java and cannot be used as keywords.