All pastes #743609 Raw Edit

Stuff

public text v1 · immutable
·published 2007-10-20 16:22 UTC
rendered paste body
struct algo
{
        int a;
        int b;
        char c;
};

struct algo test[10] ;

int main() 
{
        int i ;
        for(i=0;i<10;i++)
        {
                test[i].a = i ;
                test[i].b = i*i ;
                test[i].c = 'a' + i ;
        }
        printf("%d\n", sizeof(test) );
        for(i=0;i<10;i++)
        {
                printf("%c: ", test[i].c ) ; 
                printf("%d -", test[i].a ) ;
                printf("%d\n", test[i].b ) ;
        }
        return 0 ;
}