I compiled a c-code in Linux enviornment . When I ran it, it gave segmentation fault on some input files. When same code was compiled on a different machine (by some one else with no chances, not even in Makefile) and was run, it did not give any problem. Does any body know what could be the problem?
Yes, there are bugs in your code which (unluckily for you) don't show up on other machines.
Common problems are down to running off the ends of arrays, or generally making a mess of memory allocation.