What symbol is used for null character in string?
a) null
b) \0
c) /0
d) all of these
Commonly used String Functions
How many common functions used in C++ string?
a) three
b) four
c) five
d) six
Explanation: Strcat (), copy (), strcpy (), find (), length (), swap ()
Combining two strings into a single string is called….
a) concatenation
b) copying string
c) adding string
d) all of these
Which of the following is the correct format for concatenating string?
a) stecat (str1, str2);
b) strcat (str1, str2);
c) str (str1, str2)
d) none of these
Which function is used to copy one string to another string?
a) Strcat ()
b) copy ()
c) strcpy ()
d) find ()