gkarthi29 wrote: > But when i tried the same code in another HP server i can able to find a GCC > option '-Z' for creating executables which can dereference a null pointer. > But in this linux server there is no such gcc option :( Well, on a particular system dereferencing NULL may be well-defined. But dereferencing NULL is not well-defined on Linux. > So there is no way to make the C code work rite?:( No. Your program is broken, and must be fixed. Andrew.