Which code, inserted at line 14, generates the output "3.14 10"?
Which code, inserted at line 14, generates the output "3.14 10"?
#include <iostream>
using namespace std;
namespace myNamespace1
{
int x = 5;
int y = 10;
}
namespace myNamespace2
{
float x = 3.14;
float y = 1.5;
}
int main () {
//insert code here
cout << x << " " << y;
return 0;
}
A . using myNamespace2::y; using myNamespace1::x;
B.using namespace myNamespace1;
C.using namespace myNamespace1; using namespace myNamespace2;
D.using myNamespace1::y; using myNamespace2::x;
Answer: D
Latest CPA-21-02 Dumps Valid Version with 222 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments