Mercurial > hg > CbC > old > device
annotate test/cext.c @ 449:c55363eff5e5
parallel assignment (modify not completed)
author | kono |
---|---|
date | Thu, 25 Nov 2004 16:56:26 +0900 (2004-11-25) |
parents | 0c256ea2a97e |
children | 32737bad7489 |
rev | line source |
---|---|
353 | 1 |
2 unsigned int u; | |
3 | |
4 main() | |
5 { | |
6 int i,k; unsigned uk; | |
7 | |
8 for(i=-3;i<4;i++) { | |
9 k = (char) i; | |
10 uk = (unsigned char) i; | |
427 | 11 printf("#0010:%d %u\n",k,uk); |
353 | 12 k = (short) i; |
13 uk = (unsigned short) i; | |
427 | 14 printf("#0013:%d %u\n",k,uk); |
353 | 15 } |
16 u = (unsigned) -23432; | |
17 | |
427 | 18 printf("#0017:%d\n",u/(8048+5)); |
353 | 19 return 0; |
20 } | |
21 |