Question 2: Logical operators! What do you mean,&&|! Logical negation is equivalent to not equal to || logical OR, equivalent to or,&; & Logical and is equivalent to AND.
Question 3: What is a "logical operator" or, for example, if one of the two holds, the result holds.
AND and, for example, two, two are established at the same time, then the result is established, otherwise it is not.
To make no mistake is to take the opposite meaning, either here or there.
XOR XOR For example, if one of the two holds and the other does not, the result holds, otherwise it does not.
Question 4: What do logical operators mean? This is a professional symbol of discrete mathematics.
∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧874
∨ is called disjunction, which is a logical OR, such as p ∨ q. If and only if both p and q are f, the result is false and the rest are true.
Logical but not
Question 5: What is a logical operator? The basic logical operators of MATLAB are:&; (and), should or), ~ (not). The rules of logical operation are: two matrices with the same dimension participate in logical operation; Or one is a matrix and the other is a scalar; If two matrices are involved in the operation, the logical operation is to perform logical operation on the corresponding elements of the two matrices one by one. The result of the logical operation is a matrix with the same dimension, and its element values are "0" or "1". If one of the operators is a matrix and the other is a scalar, then each element in the matrix is logically operated with the scalar, and finally a matrix with the same dimension is generated, and its element value is "0" or "1". Communicate more.
Question 6: What are logical operators and relational operators? Hello! !
Let me explain:
& amp& amp long as one operand is wrong, then don't perform the judgment of the second operation! !
According to the topic:
int n=2,k = 0;
And (k++&; & ampn++ & gt; 2);
printf(%d %d\n,k,n);
First, judge K++&; & In n++, k++ is the post-addition operator, and the value of k we use is still 0. The value of a good k is 1. At this time k++&; The value of&n++ is 0, and n++has no operation at all, so the output is12.
Test:
# Including
int main()
{
int n=2,k = 0;
And (k++&; & ampn++ & gt; 2);
printf(%d %d\n,k,n);
Returns 0;
}
Results:
1 2
Press any key to continue.
Question 7: What are the logical operators in C language? & & amp0 means false, 1 means true.
Or: ||: 1 means false, 1 means true.
No:! : true becomes false, false becomes true
Question 8: What is a logical operator? Logical operators are also called conditional operators, that is, there are only two results of operations, true or false, hungryue or false.
Logical operators are different in different languages, but generally include AND or NOT.
Because in Java.
&&,and.
Or: ||, |
No:!
Question 9: The logical operator ∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧∧
∞ is or AVB, only AB is false (0), the value is false (0), and the rest are (1).
Question 10: Logical operator &; & amp! What do you mean? Urgent! ! For example:
int a= 1,b = 0;
If (a & amp& amp b)
{
Printf (here);
}
If (a & amp& amp B) is equivalent to if (a&; & amp(! B)) It means that A is true and! B is also a real talent. . . }
! B means non-B, that is, if B is true! B is false, and vice versa.