Thread: What is Segmentation fault and why do we get this error?

  1. #1
    Registered User
    Join Date
    Sep 2011
    Location
    India
    Posts
    27

    Question What is Segmentation fault and why do we get this error?

    What is Segmentation fault and why do we get this error?
    Also advise some programming practices to avoid this error..


    Thanking you

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >>What is Segmentation fault and why do we get this error?

    Its usually caused by a programming error.

    >>Also advise some programming practices to avoid this error..

    I usually try to avoid programming errors and that seems to do the trick.

    >>Thanking you

    Glad I could help!

  3. #3
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by sumit180288 View Post
    What is Segmentation fault and why do we get this error?
    Also advise some programming practices to avoid this error..
    Thanking you
    Segmentation fault-wiki
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Segmentation Fault Error
    By ruanhupo in forum C Programming
    Replies: 2
    Last Post: 04-19-2011, 01:57 AM
  2. GCC Segmentation fault error.
    By JPinUSMC in forum C Programming
    Replies: 2
    Last Post: 02-21-2011, 10:59 PM
  3. Segmentation Fault Error
    By c3jcarmy in forum C Programming
    Replies: 4
    Last Post: 01-25-2011, 09:48 AM
  4. Segmentation fault error
    By ashok449 in forum C Programming
    Replies: 31
    Last Post: 03-02-2008, 02:13 AM
  5. Segmentation Fault Error
    By jcramer in forum C Programming
    Replies: 2
    Last Post: 11-23-2003, 02:16 PM

Tags for this Thread