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 5 of 7)
January 2002/The New C/Listing 5

Listing 5: Four combinations of assignments between pointers to (normal or variable length)arrays

void ex5(int n)
{
    int a[10];
    int vla[n];
    int (*pa)[10];
    int (*pvla)[n];

    pa = &a;
    pa = &vla;
    pvla = &a;
    pvla = &vla;
}
— 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