source:
Deliverables/D2.2/8051/tests/clight/binop.c.expected
@
486
Last change on this file since 486 was 486, checked in by , 8 years ago | |
---|---|
File size: 375 bytes |
Line | |
---|---|
1 | int main(){ |
2 | int a=4,b=5,c; |
3 | double d=3.5,e=0.1,f; |
4 | |
5 | c = a; |
6 | c = 10; |
7 | c = a+b; |
8 | c = a-b; |
9 | c = a*b; |
10 | c = a/b; |
11 | c = a%b; |
12 | c = a&b; |
13 | c = a|b; |
14 | c = a<<b; |
15 | c = a>>b; |
16 | c = a^b; |
17 | c = a<b; |
18 | c = a>b; |
19 | c = a==b; |
20 | c = a!=b; |
21 | c = a<=b; |
22 | c = a>=b; |
23 | |
24 | f = d; |
25 | f = 1.0; |
26 | f = d+e; |
27 | f = d-e; |
28 | f = d*e; |
29 | f = d/e; |
30 | c = d<e; |
31 | c = d>e; |
32 | c = d==e; |
33 | c = d!=e; |
34 | c = d<=e; |
35 | c = d>=e; |
36 | |
37 | return c; |
38 | } |
39 | |
40 |
Note: See TracBrowser
for help on using the repository browser.