7. Unsigned char 0
Int -32768
Unsignedint 0
Short -128
Unsigned short 0
Long -2147483648
2147483649
Unsigned long 0
Float 3.4 x - x
1038
Double x 10-308 x
Long double 3.4 x 10-4032 x 24
104032
char a[20] ;
printf ( “ 2 x 2 = %d n “ , 4) ;
printf ( “ c => %c%c n “ , ‘c’) ;
8. ‘c’
#define macro_name data ;
macro_name
data
MAX
#define MAX ;
1.3.3 main ()
const variable = data ;
variable
Data
Const pi ;
Constans = ‘n’ ;
Const words = “ computer “ ;
11. && AND) ( < &&( >
|| OR) ( > ||( < false)
NOT) !( > true)
x
Y 2
( a> 0 ) && (a < 10)
a
1. ( a >0) T
2. 2 (a < 10) F
3. T &&F
4. T &&F F
if
if if
if-else if-else if-else
if
:
12. if
if
If
;
;
if
If
{
;
} ;
;
3.1.2 if
if 1
* Y> 0
z = x /y ;
printf ( “ n * Result = % .2f “ ,z ) ;
printf(“n Good bye….. n”) ;
13. y <= 0
printf(“n Good bye….. n”) ;
if – else
:
if – else
x>y z = y/ x y / x
3.3.2 if –else if –else
> 10000 %
– %
switch
if
switch
if
14. switch
case
case
default
4.1 switch
A
B C
D F
data error
5.
OK
50000 %
%
1.
2.
3.
1.