C++ Institute CPA-21-02 Question Answer
What is the output of the program if characters 't', 'e', 's' and 't' enter are supplied as input?
#include
#include
using namespace std;
int main()
{
string s;
getline( cin, s );
cout << s << " " << s.length();
return( 0 );
}
C++ Institute CPA-21-02 Summary
- Vendor: C++ Institute
- Product: CPA-21-02
- Update on: Aug 2, 2025
- Questions: 257