book
                                
                                
                                
                                    book copied to clipboard
                            
                            
                            
                        Listing 10-19: Be consistent in creating the two strings
The variables string1 and string2 are created and passed to longest in different ways for no apparent reason. I've made a small change to make Listing 10-19 consistent with the rest of the examples in Section 10.3.