What is the output of the program if characters ‘t’, ‘e’, ‘s’ and ‘t’ enter are supplied as input?

What is the output of the program if characters ‘t’, ‘e’, ‘s’ and ‘t’ enter are supplied as input?
www.vceplus.com – VCE Exam Simulator – Download A+ VCE (latest) free Open VCE Exams – VCE to PDF Converter – PDF Online
#include #include using namespace std;
int main()
{ string s; getline( cin, s ); cout << s << " " << s.length(); return( 0 ); } A. It prints: test 4
B. It prints: test
C. It prints: test 5
D. It prints: 4

Download Printable PDF. VALID exam to help you PASS.

Posted in: CPA

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.