Question: 2- Write the following program in C++ and find the output? // returns the size (of type size_type) // of the storage allocated in
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
Get step-by-step solutions from verified subject matter experts
