FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
January 01, 2003

Statements and Loops

(Page 3 of 4)
Listing 2: Potential loop during reference of sum

Listing 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);
}

Previous Page | 1 | 2 | 3 | 4 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK