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 derfloh 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 rpeters1

  1. rpeters1

    seg faulting on array declaration

    here is the code. it actually now seems that i can have an array of size 1 and it wont seg fault. a value of 4 will seg fault at the end of the program (after data is printed). a value of 5 will not seg fault. a value of 20 will seg fault before the data is printed. should i use malloc...
  2. rpeters1

    seg faulting on array declaration

    i havent programmed in C in years, i need to however for a project. anyway, i'm reading in a data file and parsing it using basic file pointers. i read in all the data fine. however, when i try to declare a simple array, say, int my_array[10];, it seg faults. if i remove the code that reads in...

Part and Inventory Search

Back
Top