Which of the following is format specification for printing String in printf()?
a) %d
b) %c
c) %s
d) %n
What type of functions are provided by <string> library file?
a) concatenation
b) find
c) replace
d) all of these
A string is terminated by a…….
a) null character
b) Boolean expression
c) semicolon
d) none of these
What is the general syntax for defining string in C++?
a) string str;
b) cstring str;
c) strong str
d) none of these
Initializing String
Which of the following is correct format for initializing a string?
a) char name[size]= {…….};
b) string str;
c) char name[size]= […….];
d) none of these