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

Listing 4: sizeof VLA through a pointer

#include <stdio.h>

int main()
{
    int n = 10;

    for (int i = 0; i < 3; ++i) {
        char (*pvla)[n];
        n += 10;
        printf("%zu ", sizeof *pvla);
    }

    return 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