#include
int main(int argc, char ** argv){
int i=0;
char s=0; // can be considered an integer
printf(“sizeof(s)=%d\n”, sizeof(s)); // holds values from -127 to 128
printf(“Counting by 1 from 0 to 9999\n”);
for(i=0;i<1000;i++){
printf("%d\n", s);
s++;
}
s = 100;
s=s+50;
if(s<80){
printf("s<80\n");
// memcpy, ...
} else {
printf("s>=80\n”);
}
printf(“100+50=%d OOPS!!!\n”,s);
// have to be careful with arithmetic, making sure computation
// does not overflow. This is especially true if using the results
// of computation as arguments to things like memcpy
// and using them to ensure safety of arguments.
}