(C syntax) Addition, c syntax Addition
Description:
Two integers in one row, with an output description within a long integer:
Example of an integer input in one row: if the question is not specifically described, read the data in multiple groups or refer to a001.
2000 9
Output example:
2009
# Include <stdio. h> int main () {int a, B; scanf ("% d", & a, & B); printf ("% d \ n ", a + B); return 0 ;}
Use a, B, c to represent rational numbers, write: 1, addition exchange law: 2, addition combination law:
Addition exchange law: a + B = B +
Addition Law: a + (B + c) = (a + B) + c
[Not clear. Ask again. If you are satisfied, please adopt it! Wish you good luck ☆ !!]]
Write programs separately to verify the syntax of the following C language: a. Different prefix and suffix operations of auto-increment and auto-subtraction operations B. remainder operations can only be applied
I. Use assertions to verify the difference between the prefix and suffix of the auto-increment and auto-Subtract operators:
# Include <stdio. h>
# Include <assert. h>
Int main ()
{
Int;
A = 5;
Assert (++ a = 6 );
A = 5;
Assert (a ++ = 5 );
Assert (a = 6 );
A = 5;
Assert (-- a = 4 );
A = 5;
Assert (a -- = 5 );
Assert (a = 4 );
}
Ii. Incomplete questions about Remainder