What is the output for the code segment below if the variables have the following values:
phrase word
“Testing a string” “ring”
int pos = phrase.find (word);
if (pos < 5)
cout << “at start”;
else
cout << “at end”;
at end
Computer Science & Information Technology
You might also like to view...
Design changes cannot be made in an ACCDE file
Indicate whether the statement is true or false
Computer Science & Information Technology
The ________ may be used to read information from a file.
A) cout object B) the stream insertion operator C) file.in macro D) stream extraction operator E) None of the above
Computer Science & Information Technology