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, 2002

The New C:

(Page 6 of 7)
January 2002/The New C/Listing 6

Listing 6: VLA function parameter

void diag(int n, int a[n][n])
{
    int i, j;
    for (i = 0; i < n; ++i)
      for (j = 0; j < n; ++j)
        a[i][j] = i == j ? 1 : 0;
}
— End of Listing —
Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 Next Page
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK