One of the most basic uses of computers is to perform mathematical operations, and as a computer language, Java also provides a rich set of operators to manipulate variables. We can divide the operators into the following groups:
Arithmetic
1. cBitwise operators in languages
Because the C language is designed to replace the assembly language, it must support the computing power of the assembly language, so the C language supports all bitwise operators ). Bit operations are used to test,
InC ProgrammingIn, the bit of data is the smallest unit of data that can be operated. In theory, you can use the bitwise operation to complete all the operations and operations. AverageBit operationIt is used to control hardware or perform data
Do not repost the labor results of developers
Operators and expressions
Operators can be divided into the following types:
? Arithmetic Operators, +,-, *,/, %, ++ ,――
? Relational operators,>, =, ? Boolean logical operator ,! , &, |
? Bitwise
Most expressions use operators, which combine one or more operands to form an expression and return the operation result.1. Expression
An expression is composed of operators and operands. Below are some simple expressions:
Int I = 556 // declare an
C # overview of various operators and functions of operators,I. []
Square brackets ([]) are used for arrays, indexers, and attributes, and can also be used for pointers.
1. the array type is a type followed:
Int [] fib = new int [100]; // create an
If the data type is the brick of the programming language, the operators and operators are the lime and cement of the programming language. It is a mixture of values of various data types, so that the data value is no longer just an isolated value,
Easy to learn about JavaScript 6: JavaScript expressions and operators
The JavaScript scripting language describes a set of operators used to operate data values, including unary operators, boolean operators, Arithmetic Operators, and Relational
C-language note types, operators, and expressionsGeneral:Variables and constants are the two basic data objects that a program handles. Declaration statements describe the name and type of a variable, or you can specify the initial value of a
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.