Which code, inserted at line 12, generates the output “5b”?

Which code, inserted at line 12, generates the output “5b”?
#include using namespace std; namespace myNamespace1
{ int var = 5;
}
namespace myNamespace2
{ char var = ‘b’;
} int main () { //insert code here
return 0; }
A. cout << myNamespace1::var << var;
B. cout << var << var;
C. cout << myNamespace1::var << myNamespace2::var;
D. None of these

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.