State which of the following statements are true and which are false. If a statement is false, explain why.
1) Concatenation of string objects can be performed with the addition assignment operator, +=.
2) Characters within a string begin at index 0.
3) The assignment operator, =, copies a string.
4) A C-style string is a string object.
1) True.
2) True.
3) True.
4) False. A string is an object that provides many different services. A C-style string does not provide any services. C-style strings are null terminated; strings are not necessarily null terminated. C-style strings are pointers and strings are objects.
You might also like to view...
Walking across carpet or vinyl floor has minimal impact on potential ESD
Indicate whether the statement is true or false
____________________ down is the best way to conserve power and prevent battery drain.
Fill in the blank(s) with the appropriate word(s).