[EMAIL PROTECTED] writes:
> #include <stdio.h>
>
> int main ()
> {
> int *x;
> int *y;
> int *z;
> *x=1; *y=3; *z=7;
You cannot do this: you have not allocated memory for your data, nor
have you initialized the pointers in any meaningful way. You are
writing data to memory that may be occupied by just about anything,
and in all probability does not belong to you...
> segmentation fault
.. and this is the expected result at runtime.
Finally, it *is* off-topic here, try comp.lang.c or
comp.lang.c.moderated next time.
--
Oleg Goldshmidt | [EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]