This is my phonebook program, whenever the user goes to the main listing and the program prints out all the people and their info the program crashes. I suspected it was because I was printing too much at one time, so I bumped the number of listings down from 100 to 50 and its STILL crashing.
You cannot call main - it is forbidden by the standard. You do so on lines 115, 88, 66 and 45.
For an array with number of elements n, valid indices are 0 to n-1. For the array listing which has 50 elements then, the valid indices are 0 to 49. However, on line 56 you use indices 1 to 50. Obviously that last is out of range.