Tag:arithmetic

  • Arithmetic operation and relation operation of C + + pointer

    Time:2022-5-6

    The following essay is about the arithmetic operation and relational operation of the pointer. Arithmetic operation of pointer type Addition and subtraction of pointer and integer Pointer + +, – operation Arithmetic operation of pointer type Pointer P Plus or minus n Its meaning is that the pointer points to the starting position of the […]

  • Introduction to Python to practice – computer arithmetic

    Time:2022-3-28

    Numerical operation As long as you have read primary school, you must have heard a lot about the concept of numerical operation. In the vernacular, it is “arithmetic“, so computer arithmetic has long been well known. Python arithmetic is also very simple. We can calculate the corresponding result [command line operation] by entering the following […]

  • Java language supports the following operators

    Time:2022-3-11

    Arithmetic operators: +, -, *, /,% (remainder / modulus operation), + +– Assignment operator: = (a = B, assign a to b) Relational operators: >, =, < =, == Instanceof (not equal to) Logical operators: & &, ||,!   Bitwise operators: &, |, ^, ~, > >, < > (understand!!!) Conditional operator?: Extended assignment operators: […]

  • Shell script pit avoidance Guide (I)

    Time:2022-2-13

    Hello, I’m Zhang Jintao. You will not be too strange to mention shell. We usually think that shell is the interface between us and the system, executing commands and returning output, such as bash, Zsh, etc. Occasionally, some people confuse shell with terminal, but this has little to do with this article and will be […]

  • Day75 inverse Polish expression evaluation

    Time:2022-2-12

    Find the value of the expression according to the inverse Polish representation. Valid operators include+、-、*、/。 Each operand can be an integer or another inverse Polish expression. https://leetcode-cn.com/problems/evaluate-reverse-polish-notation/ Example 1: Input: tokens = [“2”, “1”, “+”, “3”, “*”]Output: 9Explanation: this formula is transformed into a common infix arithmetic expression: ((2 + 1) * 3) = 9 […]

  • Getting started with SQL: what are the SQL operators? How do they work?

    Time:2021-12-6

    preface @TOCThis article discusses the various operators used in SQL in the following order: This article discusses the various operators used in SQL in the following order: What are operators? Classification of operators: Arithmetic operatorComparison operatorLogical operator What are operators? SQL operators are reserved keywords used to perform arithmetic, logical, and comparison operations in the […]

  • CSAPP English Learning Series: Chapter 2: data representation

    Time:2021-10-10

    Series articles: CSAPP English Learning Series: Preface CSAPP English Learning Series: Chapter 1: a tour of computer systems CSAPP English Learning Series: Chapter 2: data representation CSAPP English Learning Series: Chapter 8: exceptional control flow CSAPP English Learning Series: Chapter 11: network programming CSAPP English Learning Series: Chapter 12: concurrent programming Generally speaking, binary operations […]

  • Detailed explanation of enhanced arithmetic assignment: how is the – = “operation implemented?

    Time:2021-6-11

    Under the flower cat language:This translation is still Brett’s “Python syntax sugar” series. When he demonstrated the implementation of the “=” operation, he found a bug in Cpython and fixed it easily. This is Brett Original title | Unravelling augmented arithmetic assignment author | Brett Cannon translatorTofu pudding cat (Python cat official account) statement|This translation […]

  • C / C + + programming knowledge: Operator (1) arithmetic operator! Master different operation methods

    Time:2021-6-6

    Operators are the foundation of any programming language. Therefore, if operators are not used, the function of C language is incomplete. Operators allow us to perform different types of operations on operands.   In C, you can classify operators into the following categories: Arithmetic operatorS (+, -, *, /,%, increasing after, increasing before, decreasing after, […]

  • Java basic syntax. 5 basic operators

    Time:2021-5-29

    Basic operators Arithmetic operators: +, -, *, /,%, + +– Relational operators: >, =, < =, == instanceof Assignment operator:= Logical operators: & &, |,! Bitwise Operators Conditional operator Extended assignment operator Binary operator: the operator of two number operations When different operators output, if there is a long type, the output value is a […]

  • Java operators

    Time:2021-3-20

    operator 1. Take the remainder 2. Comparison operator (= =! =) 3. Arithmetic operator (+ + –) 4. Ternary operator (?)? :) 5. Compound assignment (+ =) 6. Logical operators&&As long as the left side is satisfied, the right side will not be judged, but the conditions on both sides must be satisfied; the former […]

  • Basic learning notes of computer system (2) – bit operation of data

    Time:2020-4-24

    There are two kinds of bit operation in C language: logical operation and logical shift operation. Logical operation C language provides four bitwise logical operators: bitwise negation, bitwise and, bitwise OR, bitwise exclusive or. At compile time, the compiler converts to different instructions based on the width of the operand. operation C language operators Assembly […]