answersLogoWhite

0


Best Answer

It is the very same in every programming language.

For example: AND:

0 && 0 = 0

0 && 1 = 0

1 && 0 = 0

1 && 1 = 1

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the Truth table of logical operators in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

Is 3 plus 4 plus 3 plus 6 plus 4 commutative property?

Yes, it is commutative. The result will be the same whatever the order of numbers and the operators are.3 + 4 + 3 + 6 + 4 = 20


What is Verble in 11 plus?

If you're referring to the 'Verbal' aspect to the 11+ Examination, it refers to the style of question known as 'Verbal Reasoning'. Usually a logical question requiring a logical answer.


How does plus plus a differ from a plus plus in c language?

It's a matter of if the variable (in your case, a) is incremented before or after it is referenced. Or so says Hewlett-Packard in their HP-UX C compiler manualNow, as for how the difference matters in a practical manner, see related link below for the explanation- it can do a better explanation than I can.To quote Wikipedia (legal notice: the following text is licensed under the GNU Free Documentation License):The precedence table determines the order of binding in chained expressions, when it is not expressly specified by parentheses.For example, ++x*3 is ambiguous without some precedence rule(s). The precedence table tells us that: x is 'bound' more tightly to ++ than to *, so that whatever ++ does (now or later-see below), it does it ONLY to x (and not to x*3); it is equivalent to (++x, x*3).Similarly, with 3*x++, where though the post-fix ++ is designed to act AFTER the entire expression is evaluated, the precedence table makes it clear that ONLY x gets incremented (and NOT3*x); it is functionally equivalent to something like (tmp=3*x, x++, tmp) with tmp being a temporary value.Precedence and bindingsAbstracting the issue of precedence or binding, consider the diagram above. The compiler's job is to resolve the diagram into an expression, one in which several unary operators ( call them 3+( . ), 2*( . ), ( . )++ and ( . )[ i ] ) are competing to bind to y. The order of precedence table resolves the final sub-expression they each act upon: ( . )[ i ] acts only on y, ( . )++ acts only on y[i], 2*( . ) acts only on y[i]++ and 3+( . ) acts 'only' on 2*((y[i])++). It's important to note that WHAT sub-expression gets acted on by each operator is clear from the precedence table but WHEN each operator acts is not resolved by the precedence table; in this example, the ( . )++ operator acts only on y[i] by the precedence rules but binding levels alone do not indicate the timing of the Suffix ++ (the ( . )++ operator acts only after y[i] is evaluated in the expression).Many of the operators containing multi-character sequences are given "names" built from the operator name of each character. For example, += and -= are often called plus equal(s) and minus equal(s), instead of the more verbose "assignment by addition" and "assignment by subtraction".The binding of operators in C and C++ is specified (in the corresponding Standards) by a factored language grammar, rather than a precedence table. This creates some subtle conflicts. For example, in C, the syntax for a conditional expression is: logical-OR-expression ? expression : conditional-expressionwhile in C++ it is: logical-or-expression ? expression : assignment-expressionHence, the expression: e = a < d ? a++ : a = dis parsed differently in the two languages. In C, this expression is a syntax error, but many compilers parse it as: e = ((a < d ? a++ : a) = d)which is a semantic error, since the result of the conditional-expression (which might be a++) is not an lvalue. In C++, it is parsed as: e = (a < d ? a++ : (a = d))which is a valid expression.The precedence of the bitwise logical operators has been criticized.[1] Conceptually, & and | are arithmetic operators like + and *.The expression &#8203;a & b 7&#8203;. This requires parentheses to be used more often than they otherwise would.


Conditional operators in c plus plus?

if (condition)Statementelse (condition)Statementwhile (condition)statementfor (initializer; condition; increment)Well, none of those is operator... it's exp1?exp2: exp3


What is the multiplication table of integers from -10 to plus 9?

-9

Related questions

Compare java arithmetic and logic operators with c arithmetic and logical operators?

They are very similar,but when we do logic operators there are still some differences.In c or c plus plus ,logic true can be expressed as'true' or '0',but in java,true is just 'true'.If you gave a zero,it will treat it as type of integer ,and so as false.


Printf and scanf Operators in C and C plus plus?

No, they are functions. Operators are -> or ++or /=


C plus plus bit-wise operators?

Are very useful. Examples: &amp; | ^ ~


What is used to test value of character or integer in c plus plus?

Use the comparison operators (==, &lt;, &lt;=, &gt;, &gt;=). All primitives (including char and int) support these built-in operators.


What operators perform mathematical calculations such as adding and subtracting?

The main four operators are: Plus (+) Minus (-) Multiply (*) or (x) Divide (/) or (&divide;)


What are the storage allocation in C plus plus?

They mostly deal with pointers and new operators in memory.


What is the collective term for plus minus division and multiplication signs?

Arithmetic operators


What are valid Excel arithmetic operators?

The following are valid Excel operators for arithmetic: + (plus) - (minus) / (divide) * (multiply) ^ (power of) These can help you create operations, which would be your formulas that use the operators: =A2+A7 =10^2


How relational operators represented in c plus plus?

The relational operators are == (equal), != (not equal), &lt; (less than), &lt;= (less than or equal to), &gt; (greater than) and &gt;= (greater than or equal to). All relational operators are boolean, returning true or false depending on the l-value relationship with the r-value, with respect to the operator.


What are logical classes in c plus plus?

There is no such thing. Logic is bitwise operation, not a data type.


What are special operators in c plus plus?

The only "special" operators in C++ are those that cannot be overloaded. That is; the dot member operator (.), pointer to member operator (.*), ternary conditional operator (:?), scope resolution operator (::), sizeof() and typeof().


What is stream operator in c plus plus?

There are two stream operators: &lt;&lt; (insert or put) and &gt;&gt; (extract or get). Output streams implement the insertion operator, input streams implement the extraction operator and input/output streams implement both operators.