The preceding chapters briefly describe the arithmetic operators commonly used in C #. This chapter says a Boolean value with its Boolean operator.Boolean values are represented in C # as BOOL types, which can store two values, true or false, or
Important point:(&, |) ==> binary Boolean operator, (&&,| |) ==> Conditional Boolean operatorBinary Boolean operator, both sides will execute, regardless of whether the left is true or false ==> the operands on both sides of the operator, whether
Boolean logical operators-general Linux technology-Linux programming and kernel information. For more information, see the following section. The number of boolean operators can only be boolean. The logical operation results are also Boolean (see
Thinking logic of computer programs (3), thinking Logic
Operation
The first section describes how to define data through variables. The last section describes how to assign values to data. With an initial value, you can perform operations on the
Java Foundation-logical operator Logic OperatorsYun ZhengjieCopyright Notice: Original works, declined reprint! Otherwise, the legal liability will be investigated.I. Logical operatorsLogical operators operate on Boolean values, which are common:1>
The logical (Boolean) operator is used to calculate the expression of the result of the boolean type. The result of the operation is boolean type. The calculation result is as follows:
Operator
Operation
Example
Result
A single-chip logic circuit, the need to compile a program to achieve the following logic circuit of the logical function.
Logic diagram:
Reward Points: 20 | Resolution Time: 2011-1-2 22:53;-----------------------------------------------------------
Unary operatorAn operator that can manipulate only one value is called a unary operator. The unary operator is the simplest operator in ECMAScript.1. Increment and decrement operatorsThe increment and decrement operators draw directly from C, and
1. Boolean operators&& logic and;|| logical OR;! = does not equal;Ternary operator:?:; expression is condition? Expression1:expression2 (returns the value of expression1 when the condition is true, otherwise returns the value of expression2);&& "and"
OperationIn the first section we talked about defining the data by variables, and we introduced the assignment of the data in the previous section, and after the initial value, the data can be evaluated. Computers are called "computational" machines
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.