To tylko fragment tej notatki. Zaloguj się aby zobaczyć ten dokumentZobacz
całą notatkę
Podgląd dokumentu
Fragment notatki:
Nesting unions and structures • Unions may be defined in struc tures and arrays, and vice versa • Syntax for accessing elements: like structures • Example: struct { char *name; int flags; int utype; union { int i; float f; char *s; } u; } symtab[NSYM]; • To access i use: symtab[i].u.i • The first character of the string sval : *symtab[i].u.s or symtab[i].u.s[0]
... zobacz całą notatkę
Komentarze użytkowników (0)