Professional Documents
Culture Documents
C Guide in Hebrew 7
C Guide in Hebrew 7
morsrugo@gmail.com
050-7458212
-
>#include <stdio.h
)void main(void
{
;int a=4, b=6, c
;c=a*2+b
;)printf("a, b, c are: %d %d %d\n",a,b,c
;a=b
;b=5
;)printf("a, b are: %d %d\n",a,b
;a++
;b=++a
;c=b++
;)printf("a, b, c are: %d %d %d\n",a,b,c
;c+=a
;b*=c
;)printf("b, c are: %d %d\n",b,c
}
:1
;int n=5, x, y
;x=n++
;y=++n
;)printf(x=%d, y=%d,x,y
n
5
"//"
)(,
sizeof
/ /
)sizeof(expression
)sizeof(type
;char ch, z=120
;int x=5
;double y=7.5
:
size of ch is: 1
size of x is: 4
size of y is: 8
size of (x+10) is: 4
size of z is: 1
size of (z+100) is: 4
'(
1>10-20
3+1=2-1
5^2<=3^2
7!=10
20!=40/2
) 1 (0
- , -
- -
)(x=10, y=15 :
) ,printf
C
. ) (1 )
(0
:
< -
> -
== -
<= -
>= -
!= -
"//"
||
&&
1
0
0 -
:
-2 < -1 < 0
(-2 < -1) < 0
6 == 6 == 6
4 && -4
4 && 0
!5
)(AND
)|| (OR
)(NOT
&&
!
:
)!(a>b
)(x>z)&&(z==t
)(a>b)||(a>c
:
)?=!))((a>b)||(c=getchar
)?=!))((result==13)&&(c=getchar
)( getchar
><conio.h
C ""
0 - "" 0 ""
0 1
"//"
)if(x!=0
)if(x
)if(x==0
)if(!x
= ==
)if(x=y