i need a c program code with the answer for it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sherty
    New Member
    • Feb 2010
    • 1

    i need a c program code with the answer for it

    need a c program code with run time error in the code.
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    1. find a problem
    2. make an logic which is wrong.
    3. then code it.
    4. compile it
    5. run it.

    Comment

    • AmberJain
      Recognized Expert Contributor
      • Jan 2008
      • 922

      #3
      Have you looked into Segmentation fault?

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        The easiest thing is to set a pointer to zero and then use it.

        Comment

        • Banfa
          Recognized Expert Expert
          • Feb 2006
          • 9067

          #5
          Divide by zero is also fairly easy to create.

          Comment

          Working...