You are confusing 'segmentation fault' with 'accessing memory not
(yet) allocated'. A program has certain space allocated to it by
the OS. To use this memory in an organized manner, you use (m)alloc.
So in your program you are accessing your memory only, and that is
why no seg-fault(and hence no core dump).

Quoting Vimol ([EMAIL PROTECTED]):
> The C program here is giving out "Hello world" while running in Rethat Linux 
> 7.2 . It is compiled with ''gcc".
> 
> WHY NO CORE DUMP??? I have malloc only one byte.
> Please explain me.
> 
> 
> Kvimol



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to