hi can anyone tell me please what is segmented error , i have made a program in c on linux and when i am running it after compiling , after a few inputs it shows segmwntwd erroe. what is this??
"Segmented error" or segfault? Sounds like you have some invalid pointers floating around or something.
I had no pointers in the program but had one temp ptr which I never used. probably is freeing it. I am checking that. anyway thanks for the tip.
To quote Wikipedia: A segmentation fault (often shortened to segfault) is a particular error condition that can occur during the operation of computer software. A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting to write to a read-only location, or to overwrite part of the operating system). (end quote) Now this can also occur in a function that has invalid parameters passed also. If the program is small, you can paste it and I'll take a look at it when i get the chance.