Vidyalelo
C++ Programming · Q57

Classes and Objects in C++

Programming · C++ Programming · question 57

Q57

What will be the output of the following C++ code? #include #include using namespace std; int main () string str ("example."); str.front() = 'E'; cout << str << endl; return 0;

A.
Example
B.
Example.
Answer
C.
example
D.
example.

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board