Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by arianathan

  1. arianathan

    Arrays, pointers, and Segmentation Faults

    i had declared in main, { int i=o; char *x; for(....) {... ..... } .. ... } i got segmentation fault. i put int i; after removing the assignment i.e. =0 (no other modifications in pgm.) i still got segmentation fault. then i put int i; below the declaration char *x; the pgm worked fine...
  2. arianathan

    Arrays, pointers, and Segmentation Faults

    When i declared int i=o in the C program in UNIX i got segmentation fault but when i removed the value assignment i still got that message. when i moved the declaration int i three lines below it did not give me the error. can anyone tell me why?

Part and Inventory Search

Back
Top