Содержание
- 2. The concept of the type includes the following information about the data element: an allowable set
- 3. Language С provides an opportunity of representation and data processing of the following basic types: integers
- 4. Those elements of the data that keep the constant values during all operating time of the
- 5. The instruction of the programming language that allows to assign and to change the values of
- 6. Types of the data in language C. The description of the data in the program As
- 7. type-specifier identifier ; where sc-specifier is the descriptor of the memory class; type-specifier – the type
- 8. For the majority of compilers from the language С the descriptors of the type specified in
- 9. The remark. Key words “unsigned”, “signed”, “short” and “long” can be used as modifiers of the
- 10. Let's consider some examples of the data description in the program. int a, b, c;/* Variables
- 11. As the internal machine data presentations of the same type for various COMPUTERS may be different
- 12. Elements of language C Operators The elementary operator of language С is any expression, coming to
- 13. Arithmetic operations and arithmetic expressions In the first paragraph it has been already considered one of
- 14. Arithmetic operations and arithmetic expressions Operators of multiplicate group serve for representation of operations of multiplication
- 15. Let’s show some simple examples of arithmetic expressions: a = 4.3 + 2.7 In this example
- 16. In language С operation of giving is a full part of any arithmetic expression and generally
- 17. Operations of the relation, logic operations and logic expressions The group of two-place operations of the
- 18. Result of any operation of the relation is numerical value such as int, equal to unit
- 19. During calculation of value of any conditional expression, operation of the relation are processed from left
- 20. By development of real programs frequently it appears necessary to unit two or more conditional expressions.
- 21. Let's assume, that exp1 and exp2 - two simple conditional expressions. Then: 1. value expressions exp1
- 22. The standard order of their processing - from left to right. The priority of logic operations
- 23. Generally operands of logic operations can be not only conditional expressions, but also any arithmetic expressions.
- 24. For example, the instruction: abs_a = (a> 0)? a:-a gives a variable abs_a absolute value of
- 25. Automatic transformation of the types and operation of reduction If the structure of arithmetic or conditional
- 26. 1. If operation is carried out above the data of two various types, both sizes are
- 27. This opportunity is realized in operation of reduction of types as follows: Before the given size
- 28. However having applied obvious image operation of reduction of type to both operands in the right
- 29. The elementary operators of language C. The compound operator The arithmetic above arithmetic, conditional and logic
- 30. The elementary operators of language C. The compound operator For a designation of the completed actions
- 32. Скачать презентацию