Mercurial > hg > CbC > old > device
changeset 848:d9cd16896b4a
add cloop.c
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 24 Sep 2011 01:58:27 +0900 |
parents | c0ad9d810b6c |
children | d58ae69b11e4 |
files | test/cloop.c |
diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/cloop.c Sat Sep 24 01:58:27 2011 +0900 @@ -0,0 +1,23 @@ + + +char c[] = {0,1,2,3,4,5,6,7,8,9}; +short s[] = {0,1,2,3,4,5,6,7,8,9}; +int i[] = {0,1,2,3,4,5,6,7,8,9}; +long long l[] = {0,1,2,3,4,5,6,7,8,9}; + +main() +{ + int i; + for( i = 0;i<10;i++) { + printf("%d\n",c[i]); + } + for( i = 0;i<10;i++) { + printf("%d\n",s[i]); + } + for( i = 0;i<10;i++) { + printf("%d\n",i[i]); + } + for( i = 0;i<10;i++) { + printf("%ld\n",l[i]); + } +}