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
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