just a theoretical question this time. Lets suppose i have an array with n elements . Obviously the elements can be indexed by 0 to n - 1. However the question is does pointing the index at element n cause a seg fault or trying to access the data stored there cause the seg fault.