| |
| | 14.asp.htm |
 | | In Pascal, each string consists of an array of characters, with a length byte that keeps count of the number of characters stored in the array. |
 | | When I compile these three pieces of code on a MicroVAX with gcc, using no optimization, and run each 20,000 times on a 120-character string, the first piece of code yields a time of 12.3 seconds, the second 12.3 seconds, and the third 12.9 seconds. |
 | | Note that many of the standard Pascal capabilities, such as copy, delete, pos, and so on, are missing. |
| www.collegecanada.com /library/c/14.asp.htm |
|