{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# ch4 - Ch4 h 4.1 4.2 4.3 4.4 4.5 4.6 X h h h ch h ch 4.1 C h...

This preview shows pages 1–9. Sign up to view the full content.

Ch4 h c h 4.1 c h 4.2 h 4.3 4.4 h 4.5 h 4.6 h

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4.1 C h h . h :c S p , b , ð=À¬ p . Ô ´ ³ ÌÐ ò Î Ä¼ þ 1 . . . Ó è ± àÒ ëÃ üÁ î . Ë µÃ ÷ ² ¿ · Ö . Ö ´Ð Ð ² ¿ · Ö . £ ¨Ó ï¾ ä £ © . º ¯Ê ý1 . º ¯Ê ýn Ô ´ ³ ÌÐ ò Î Ä¼ þ i . . Ô ´ ³ ÌÐ ò Î Ä¼ þ n . . . . c ³ ÌÐ ò
. h c S p h . h : 1. h : (1) if ( ) ~else~ h (2) for ( )~ h (3) while ( ) ~ h (4) do ~ while( ) h (5)continue

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
(6) break h switchN 7 (7) switch N7 p (8) go to h (9) return N7 p ˜ñ=À¬* p oz ~ A·ª* if ~else~ N7 p if h x>y) z=x;else z=y; 2.N7 p : S p h . : printf(“This is a C stetment.”);
3. S p a=3 h i++ Sp a=3 h i++ h 4. h : = Ip . ; 5. h :ozp , C . h :{a=a+1; b=a; c=b+a ; }

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4.2 h h 1 h =” 2 7 , A 7 . (2) S . h : if((a=b)>0) t=a; P7 : a=b x=4 h : a=b; x=4; P7 p a=b) 2 p a=b; h . a=b h .
4.3 % h %B7 #include “stdio.h” h #include <stdio.h> printf h scanf h getchar h putchar h

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4.4 h cS p 7p c h S p h .putchar h ( 7 p ): : . h #include “stdio.h” h stdio.h . : putchar (c); 7 p c h .
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}