Comp 121
Chapter 9 Study Guide
Chapter 9
What is a string? How is it stored?
What does cin.getline() do?
What is the last character in every string?
What is a character input function in C++ that will accept a string one character at a time?
When is string2[i] != ‘\0’ a false statement?
Are char *string1 and char string1[] equivalent declarations? Why or why not?
What is the required header file for String Library Routines?
How are strings compared? Is "Hello" < "Hello there"? Why or why not?
What is the required header file for Character Library Routines?
What does the function atof() do? What header file is required to use?
Does the definition of a string have to involve a pointer?
How do you create a string using a pointer instead of an array? What is the difference between the two?
What is a pointer array?