1. Integer Division: If both operands are integer types, then the result of the division operation is also integer type, that is, the decimal part is discarded. For example, 5/2 results in 2.
2. Floating-point number division: If one of the operands is of floating-point number type, then the result of division operation is also of floating-point number type. For example, the result of 5.0/2 is 2.5.
3. Divider is 0: In the division operation, the divisor cannot be 0, otherwise there will be an error of dividing by 0.
4. Remainder operation: The language also provides the remainder operator%, which is used to calculate the remainder after dividing two integers. For example, the result of 5%2 is 1.
Data expansion:
C language is a process-oriented abstract general programming language, which is widely used in the underlying development. C language can compile and process low-level memory in a simple way. C language is an efficient programming language, which only produces a small amount of machine language and can run without the support of any running environment.
Although C language provides many low-level processing functions, it still maintains the cross-platform characteristics. C language programs written in standard specifications can be compiled on many computer platforms, including embedded processors and supercomputers.
Development history:
C language was born in bell laboratory and developed by dennis ritchie on the basis of B language designed by Kenneth Lan Thompson. After its main design was completed, Thompson and Richie used it to completely rewrite UNIX, and with the development of UNIX, C language has been continuously improved.
In order to popularize C language in an all-round way, many experts, scholars and hardware manufacturers jointly formed the C language standard committee, and the first complete C standard, abbreviated as "C89" or "ANSI C", was born in the subsequent 1989. By 2020, the latest C language standard is "C 65438+" published in June 2008.
C language was named C because C language originated from B language invented by Ken Thompson, and B language originated from BCPL language. 1967, Martin Richards of Cambridge University simplified CPL language, so BCPL language was born.
In the 1960s, at & amp; Ken Thompson, a researcher at Bell Laboratories of T Company, has nothing to do and his fingers itch. He wants to play a video game-space travel, which he made up himself to simulate sailing in the solar system.
Behind the boss, he found a spare small computer-PDP-7. But this computer doesn't have an operating system, so the game must use some functions of the operating system, so he began to develop an operating system for PDP-7. Later, this operating system was named ——UNICS.