January 01, 2003
Statements and LoopsListing 2: Potential loop during reference of sum
void ex2(int a[5])
{
int sum;
int i;
// lots of other declarations
// lots of statements
sum = 0;
for (i = 0; i < 5; ++i)
sum += a[i];
// lots of statements
printf("sum=%d\n", sum);
}
|
|
||||||||||||||||||||||||||||
|
|