transcode/examples/arit.c

18 lines
244 B
C
Raw Permalink Normal View History

2011-07-11 12:15:35 +02:00
#include <stdint.h>
int main ( void ) {
uint8_t foo, bar, tor, res;
foo = 3;
bar = 27;
tor = 99;
res = 3 + 4; /* gets optimized */
res = tor * bar;
res = bar / tor; /* subroutine */
res = bar & foo;
res = bar % foo;
2011-07-13 00:42:27 +02:00
return 0;
2011-07-11 12:15:35 +02:00
}