27
For the type of data we are sorting, a quick sort or a pointer-sort algorithm would be a better choice, but the only objective of this example is to show you how to handle arrays of strings. The bubble sort algorithmic simplicity makes it easy to follow the main points. You can consult any of the many books on data structures and algorithms for a discussion about sorting techniques.