ansi C reference phần 8

Ở đây, xử lý tràn sẽ bắt ngoại lệ tràn loại và xử lý các Matherr sẽ bắt ngoại lệ của Matherr loại và tất cả các loại công khai nguồn gốc từ Matherr bao gồm Van cân và Zerodivide. ] ở đâu, cho mỗi đơn vị dịch thuật, tất cả các lần xuất hiện duy nhất trong dịch thuật | 5 Expressions expr 1 Note this clause defines the syntax order of evaluation and meaning of expressions. An expression is a sequence of operators and operands that specifies a computation. An expression can result in a value and can cause side effects. 2 Operators can be overloaded that is given meaning when applied to expressions of class type 9 . Uses of overloaded operators are transformed into function calls as described in . Overloaded operators obey the rules for syntax specified in this clause but the requirements of operand type lvalue and evaluation order are replaced by the rules for function call. Relations between operators such as a meaning a 1 are not guaranteed for overloaded operators .36 3 This clause defines the operators when applied to types for which they have not been overloaded. Operator overloading shall not modify the rules for the built-in operators that is for operators applied to types for which they are defined by the language itself. However these built-in operators participate in overload resolution see . 4 Operators can be regrouped according to the usual mathematical rules only where the operators really are associative or commutative. Overloaded operators are never assumed to be associative or commutative. Except where noted the order of evaluation of operands of individual operators and subexpressions of individual expressions and the order in which side effects take place is unspecified. Between the previous and next sequence point a scalar object shall have its stored value modified at most once by the evaluation of an expression. Furthermore the prior value shall be accessed only to determine the value to be stored. The requirements of this paragraph shall be met for each allowable ordering of the subexpressions of a full expression otherwise the behavior is undefined. Example i v i the behavior is undefined i 7 i i i becomes 9 i i 1 the behavior is undefined i i 1 the value of i is incremented end example 5 If

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.