

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


#include <stdio.h>
#define COUNT 2 unsigned int i=0;
void f2() { i++; }
unsigned int f1(unsigned int x, unsigned int y) { static count = 0;
count++; f2(); printf("count = %d\n", count); return (x+y); }
int main(void) { unsigned int i=1; i++; { unsigned int i, sum=0; for (i=0;i<COUNT;i++) { sum = f1(i,i+1); printf(" i = %d\n", i); } printf(" i = %d\n", i);
} printf(" i = %d\n", i); }
VCOUNT: .word 8 VALUES: .word 2,3,5,7,11,13,17,