#include typedef struct { char tytul[50]; char rodzaj[15]; char typ_danych[15]; int nr; } nosnik; int main() { nosnik lista[20]; lista[0].tytul[0] = 'a'; lista[0].rodzaj[0] = 'b'; lista[0].typ_danych[0] = 'c'; printf("%s", lista[0].tytul[0]); return 0; } /* Program received signal SIGSEGV, Segmentation fault. 0xb7dfb55b in strlen () from /lib/tls/i686/cmov/libc.so.6 (gdb) disas main Dump of assembler code for function main: 0x08048374 : lea 0x4(%esp),%ecx 0x08048378 : and $0xfffffff0,%esp 0x0804837b : pushl 0xfffffffc(%ecx) 0x0804837e : push %ebp 0x0804837f : mov %esp,%ebp 0x08048381 : push %ecx 0x08048382 : sub $0x6a4,%esp 0x08048388 : movb $0x61,0xfffff96c(%ebp) 0x0804838f : movb $0x62,0xfffff99e(%ebp) 0x08048396 : movb $0x63,0xfffff9ad(%ebp) 0x0804839d : movzbl 0xfffff96c(%ebp),%eax 0x080483a4 : movsbl %al,%eax 0x080483a7 : mov %eax,0x4(%esp) 0x080483ab : movl $0x804848c,(%esp) 0x080483b2 : call 0x80482d8 0x080483b7 : mov $0x0,%eax 0x080483bc : add $0x6a4,%esp 0x080483c2 : pop %ecx 0x080483c3 : pop %ebp 0x080483c4 : lea 0xfffffffc(%ecx),%esp 0x080483c7 : ret End of assembler dump. */