Mercurial > hg > CbC > old > device
annotate test/cext.c @ 522:a513979e5495
*** empty log message ***
author | kono |
---|---|
date | Tue, 27 Dec 2005 17:19:49 +0900 |
parents | a379da780856 |
children | 2a4a40168fa4 |
rev | line source |
---|---|
467 | 1 int printf(const char *format, ...); |
353 | 2 |
3 unsigned int u; | |
4 | |
5 main() | |
6 { | |
7 int i,k; unsigned uk; | |
8 | |
9 for(i=-3;i<4;i++) { | |
10 k = (char) i; | |
11 uk = (unsigned char) i; | |
491 | 12 printf("#0011:%d %u\n",k,uk); |
353 | 13 k = (short) i; |
14 uk = (unsigned short) i; | |
491 | 15 printf("#0014:%d %u\n",k,uk); |
353 | 16 } |
17 u = (unsigned) -23432; | |
18 | |
491 | 19 printf("#0018:%d\n",u/(8048+5)); |
353 | 20 return 0; |
21 } | |
22 |