first, arithmetic operationsThere are 34 types of operators in C, including common subtraction operations1. Addition Operation +Besides being able to do addition operations, it can also represent a plus sign: +5, +902. Subtraction operation-Besides
Priority level
Operator
Name or meaning
Use form
Combination direction
Description
1
[]
Array subscript
array name [constant expression]
Left to right
()
Parentheses
When I first learned python, it might be a bit complicated to understand the meaning of Python's error message. Here's a list of common run-time errors that make your program crash.1) Forget to add at the end of the IF, elif, else, for, while, class,
Operator classification, precedenceOperator:First, the mathematical operator:+,-,*,/,++,--Example 1:Example 2:Example 3:1. Increment operator : + +(1) Prefix increment operatorint x=4;x++;//output, the value of X is 5Example:(2) Postfix increment
The essence of a program is to process dataNow that we know how to use variables to refer to data, when used, variables must be associated with the data in order to really play the role of the variable.To solve this problem, the C language provides
Type:Determines the set of desirable values for an object and the operations that can be performed;operatorSpecify the operation;An expressionCombine variables and constants to generate new values.ANSI C Patching:All integral types include signed
Priority Level
operator
Description
Example
Binding Nature
1
()[]-.::++--
The parentheses operator that adjusts the precedenceArray Subscript access operatorTo access a member's operator by pointing to the
This article mainly introduces the PHP boolean value of the self-increment and self-reduction of the implementation method, has a certain reference value, now share to everyone, the need for friends can refer to
After the morning and business
Chapter Three Basics of PHP
(3.6--3.11)
3.6 variables
Variable declaration
Variable assignment: Assign value by value/reference assignment
Variable scope:
Local variable: A variable declared in a function that can only be referenced in a
Arithmetic operators
Operator name Result
$a + $b addition $a and $b and
$a-the difference between $b subtraction $a and $b
$a * $b multiplication $a and the product of $b
$a/$b division $a divided by the quotient of the $b
$a% $b modulo $a divided
Seemingly simple things, in practical use, is still very interesting
Arithmetic operators
Operator name Result
$a + $b addition $a and $b and
$a-the difference between $b subtraction $a and $b
$a * $b multiplication $a and the product of $b
$a/$b
Example name effect + + $ a add the value of $ a plus one, and then return $. $ A ++ returns $ a after adding, and then adds the value of $. -- Minus $ a before $ a minus one, and then returns $. $ A -- returns $ a after subtraction, and then drops
This time for everyone to bring PHP Boolean self-increment and self-reduction use of the detailed, PHP Boolean self-increment and self-reduction of the use of attention to what, the following is the actual case, take a look.
He found that the
Learning Python originally wanted to summarize, but found a good Daniel's blog, take doctrine, and I practiced theAbout the first two if the summary of the not detailed, so the other people's reprint come over http://www.cnblogs.com/BeginMan/archive/
Operators include: arithmetic operators, bitwise operators, relational operators, and equality operators.Unary operator1, can only operate a worthy operator, that is, increment and decrement operators;2, Increment (+ +) and decrement (-) operators
1. Iterate through an obj attribute to an arrayvar a=[]; For (A[a.length] in obj); return A;At first glance may be more Mongolian, but careful analysis is not difficult to understand. The common usage is for (var key in obj), where key is initially
It is better to study again than to review. Here is a record of what you want to record in your learning process so that you can review it later.ECMAScript raw Data type : String, Number, Boolean, Undefined, NullCalling the TypeOf operator on a
2.1 Variables in PHP:Define variable: $ variable name = value;Variable name: The first digit after $ begins with $ must be the letter $ second digit can be a letter, a number, or an underscore. The customary variable name has a practical meaning,
Operator PrecedenceOperator precedence in JavaScript is a set of rules. This rule controls the order in which operators execute when evaluating expressions. Operations with higher precedence are performed Mr. Foo the operators of lower precedence.
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.