Question: 1. Write the following program in C++ and find the output? #include #include using namespace std; int main() { string strl = Hello; string str2

 1. Write the following program in C++ and find the output?

#include #include using namespace std; int main() { string strl = "Hello";

1. Write the following program in C++ and find the output? #include #include using namespace std; int main() { string strl = "Hello"; string str2 = "World"; string str3; int len; // copy strl into str3 str3 = strl; cout #include using namespace std; int main() string str = "C++ is best computer language"; string:rsize_type cap; cap = str.capacity(); cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!