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