Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!rochester!pt.cs.cmu.edu!andrew.cmu.edu!xj01+ From: xj01+@andrew.cmu.edu (Xue Jue) Newsgroups: comp.lang.c Subject: pointer allocation Message-ID: <8Xf3eSy00UkZ40cVE0@andrew.cmu.edu> Date: 18 Dec 88 23:09:18 GMT Organization: Carnegie Mellon Lines: 21 I am try to allocate a list of integer pointers by the following short program. But for some reason, after I compiled it and tried to run, it gave me a Segmentation fault message. I couldn't see what's wrong there. Could anyone out there give me some guide? #include int *(*B); main() { *B = (int *) calloc(18,sizeof(int)); } By the way, this is on IBM RT work station. The same thing has been running on IBM PC with microsoft C 5.0. Thanks. ----jue xue