home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_01 / 035.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-06  |  610KB  |  2550x3300
Labels: book | crt screen | daybook | reckoner | shelf
OCR: 1. Arithmetic Operations F the When an arithmetic expression becomes complicated, parentheses can and han- should be used to aid readability even when the expression follows the normal pre cedence rules. This relieves programmer reading the code from reaching precedence chart. The program in Example 1-10 illustrates precedence for some combinations of the arithmetic operations nteger divi- nd is nega- Example 1-10 preceden.c and the preceden.c perations nds Synopsis Fi ive vari ables of type int are decl lared ent Ari thme tic operati ions are per formed and the hen the resul iting values are d splayed ger value Objecti ive illustrate the relati .ve precedence of xecute the ar thmeti operati ions and to see how the meaning can be changed by the add: tion of parentheses tinc. lude <stdio h ...