TAILIEUCHUNG - THEORY AND PROBLEMS OF PROGRAMMING WITH Second Edition phần 2

Tiềm năng lớn cho sự tiến bộ trên một lệnh ngừng bắn Ả Rập-Israel hoặc giải quyết. Mặc dù việc giải quyết tranh chấp Ả Rập-Israel phụ thuộc phần lớn vào các cầu thủ ngay lập tức có liên quan, một nỗ lực phối hợp quốc tế có thể có thể để giảm căng thẳng trong khu vực và khuyến khích tất cả các bên ngồi đàm phán | CHAP. 3 OPERATORS AND EXPRESSIONS 47 Notice the truncated quotient resulting from the division operation since both operands represent integer quantities. Also notice the integer remainder resulting from the use of the modulus operator in the last expression. Now suppose that v1 and v2 are floating-point variables whose values are and respectively. Several arithmetic expressions involving these variables are shown below together with their resulting values. Expression Value v1 v2 v1 - v2 v1 v2 v1 v2 Finally suppose that C1 and C2 are Several arithmetic expressions that make based upon the ASCII character set . character-type variables that represent the characters p and T respectively use of these variables are shown below together with their resulting values Expression Value C1 80 C1 C2 164 C1 c2 5 169 C1 C2 5 217 Note that P is encoded as decimal 80 T is encoded as 84 and 5 is encoded as 53 in the ASCII character set as shown in Table 2-1. If one or both operands represent negative values then the addition subtraction multiplication and division operations will result in values whose signs are determined by the usual rules of algebra. Integer division will result in truncation toward zero . the resultant will always be smaller in magnitude than the true quotient. The interpretation of the remainder operation is unclear when one of the operands is negative. Most versions of c assign the sign of the first operand to the remainder. Thus the condition a a I b b a b will always be satisfied regardless of the signs of the values represented by a and b. Beginning programmers should exercise care in the use of the remainder operation when one of the operands is negative. In general it is best to avoid such situations. EXAMPLE Suppose that a and b are integer variables whose values are 11 and -3 respectively. Several arithmetic expressions involving these variables are shown below together with their resulting values. Expression Value a

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.