Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Congruence and divisibility in C language
Congruence and divisibility in C language
Fill in the blanks:

0%2=0

1%2= 1

2%2=0

3 & amp2= 1

4%2=0

0/2=0

1/2=0

2/2= 1

3/2= 1

4/2=2

How to define the calculation of congruence and divisibility in C language: congruence refers to the division of one number by another, and the part that is not divided enough is the remainder, which is the result of congruence.

Divisibility is a number divided by another number, which is just a good multiple. There is no rounding here. Anything less than double should be discarded.

Extended data:

Basic expression 1 level

Main expressions are mainly used as operands between operators.

Identifiers, constants, strings and priority promotion expressions have the highest priority.

Priority promotion expression refers to the expression in brackets, such as "(expression)".

Suffix expression level 2

Suffix-expression [expression], array subscript operation.

Postfix-expression (argument-expression-list), function call, optional parameters in parentheses.

Suffix-expression. Identifiers, member access,

Suffix-expression-> Identifier, member access,-> There should be a pointer before the symbol.

Suffix-expression++,suffix increases.

Suffix-expression-,suffix self-decreasing

(Type Name) {Initializer List}

(type-name) {initializer-list,} composite initialization, added after C99. take for example

int* a = (int[]) { 1,2,3 };

//equivalent to

int unamed[] = { 1,2,3 }; //unamed indicates an invisible variable name.

int * a = unamed?

Monocular/Monocular Operation Level 3

++unary expression prefix self-growth

-Unary expression prefix self-decreasing

Unary operator cast-expression monocular transformation expression, including address &, claim *, plus sign+,minus sign-inversion ~ logical no! .

Sizeounary-expression finds the type length, and expression finds the type length.

Sizeof (type-name) lookup type length

Resources Baidu Encyclopedia -C language operator: