! The operator performs a logical "Non" Operation on the expression.! = The operator compares the values of two expressions to see if they are equal.! = The operator compares the values of two expressions to see if they are not equal or the data
Bitwise operations in Java
Java bit operator
Bitwise operators are used to operate binary bits. Java provides bitwise operators as shown below:
Bitwise operator (>>,>>,&, |, ^ ,~ ), In the bitwise operator, ~ The others are binary operators. The
The content of this section:
Data type
Data operations
Getting Started supplements
Reference pages
Data type numeric int (integer)On a 32-bit machine, the number of integers is 32 bits, the value range is -231~231-1, that
Objective
Enum, that is, the enumeration, from the C language, C + +, Java, objective-c, Swift These languages, of course, have the corresponding enumeration type, the function may have less, but the core is a-specification of the definition of the
In the Objective-c language, Apple introduced two macros in iOS to redefine the enumeration type (that is, Ns_enum and ns_options), which is essentially the same as defining enumerated types, but in using Ns_enum for general enumerations, Ns_enumm
The magic of Python is a method that allows you to add "magic" functionality to your custom classes. In the official Python documentation, the introduction or description of these methods is not only fragmented, but also loosely structured. This
1,sort method
Syntax: function sort (... args): ArraySorts the elements in an array. Flash is sorted according to Unicode values. (ASCII is a subset of Unicode.) )
By default, Array.Sort () is sorted by the instructions in the following list:Sorting
One of the advantages of using the Python magic method is that it provides an easy way to make objects behave like built-in types. This means that you can avoid performing basic operations with ugly, anti-intuitive, and nonstandard methods. In some
Basic Data Types in C LanguageChar, int, float, double1>CharCharacter)The character enclosed in single quotes is char; ''contains characters, and" "contains strings. For example, char c = 'a ';Characters are displayed in graphs, but are stored in an
(This question is not difficult, but the bad habits of procrastination and fear have eaten me for more than 10 days.) Related Concepts: difference or: ^ bitwise OR 0 if the two binary digits involved in the calculation are the same; otherwise, the
Marker enumeration and bitwise operations, marker enumeration operations
Notes
First, define the flag enumeration:
Create an IsEnums. cs class in the model folder of the project.
[Flags]Public enum ABC{A = 1,B = 2,C = 4,
}
Then reference the model
C language-bitwise operator, C language-OperatorI. bitwise operators 1. bitwise AND :&
1> Functions
* The result bit is 1 only when the corresponding two binary bits are 1. Otherwise, the result bit is 0.
* Example: 10 is represented as 1010 in
Network broadcast address calculation method: (1) bitwise AND operation on the IP address and subnet mask to obtain the network address (2) "inverse" Operation on the subnet mask, then perform the bitwise OR operation with the network address to
Python basic Syntax (i)Features of Python1. SimplePython is a language that represents simple thinking.2. easy to learnPython has a very simple syntax.3. free, open sourcePython is one of the floss (free/open source software).4. high-level
Priority
Category
Same-level operators
Operation name
Operation count
Combination Method
High
Force
() []->
Parentheses (such as functions and brackets ),Subscript, field, and member
Binocular (but with single
Java operators include Arithmetic Operators, Relational operators, logical operators, and bitwise operators.1. Arithmetic Operators
Java Arithmetic Operators include unary operators and binary operators. The operands of arithmetic operators must be
Original Author: Rosen Jiang Source:Http://www.blogjava.net/rosen
Shift Operator
Including:"> Right shift"; ">> unsigned right shift"
Example:-5> 3 =-11111 1111 1111 1111 1111 1111 11111111 1111 1111 1111 1111 1111 1111The result is exactly the same
12-bit arithmeticThe C language is designed for the description system, so it should have some functions that are done by assembly language. C language has the features of high-level language and low-level language. Therefore, it has a wide range of
Displacement enumeration
Displacement enumeration is a very old C-language technique
Bitwise AND if all is 1 the result is 1
Bitwise OR if all is 0 the result is 0
Drill1 Defining enumeration typesAction Type Enumerationtypedef
Bitwise operatorsBitwise operators are operations that align bits from low to high.
symbols
function
Example
Personal Understanding
&
Bitwise-AND
$m & $n
Full 1 is 1, otherwise 0
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.