source:
src/Cminor/test/sum.c
@
2844
Last change on this file since 2844 was 758, checked in by , 10 years ago | |
---|---|
File size: 148 bytes |
Line | |
---|---|
1 | char src[5] = {28,17,17,8,4}; |
2 | |
3 | int main(void) { |
4 | int i; |
5 | char total = 0; |
6 | |
7 | for (i=0; i<sizeof(src); i++) |
8 | total += src[i]; |
9 | |
10 | return total; |
11 | } |
Note: See TracBrowser
for help on using the repository browser.