Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

"//"



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

;))printf("size of ch is: %d\n", sizeof(ch


;))printf("size of x is: %d\n", sizeof(x
;))printf("size of y is: %d\n", sizeof(y
;))printf("size of (x+10) is: %d\n", sizeof(x+10
;))printf("size of z is: %d\n", sizeof(z
;))printf("size of (z+100) is: %d\n", sizeof(z+100

'(

1>10-20
3+1=2-1
5^2<=3^2
7!=10
20!=40/2

;int a=5, b=7


;a!=b
;a==b
?3<x<5

) 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

You might also like