Monday, January 9, 2012

Hey is there anyone who tell me why we use the value of subscript from 0 in c language but 1 in pascal????

starting with 0 is used in most programming languages with arrays, it makes sense because of how it is implemented, you would lose a possible array space if you started on 1 because of how the number is represented in memory, and in pascal you don't neccesarily start on 1, it starts on and ends on whatever you tell it...

0 comments:

Post a Comment