What happens when you attempt to compile and run the following code?

What happens when you attempt to compile and run the following code?
#include
#include #include using namespace std;
int main(void)
{ string s; s = “Test”;
s.resize (s.size() ? 1); cout<A. It prints: Test 4
B. It prints: Test 3
C. Compilation error
D. It prints: Tes 3

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.