Question: 2- Write the following program in C++ and find the output? // returns the size (of type size_type) // of the storage allocated in string

 2- Write the following program in C++ and find the output?

2- Write the following program in C++ and find the output? // returns the size (of type size_type) // of the storage allocated in string #include #include using namespace std; int main() ! string str = "C++ is best computer language"; string: :size_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!