namespace A{
int var = 10;
namespace B{
int i = 15;
}
}
a) cout<<A::i;
b) cout<<B::i;
c) cout<<A::B::i;
d) cout<<i;
How to print the value of the i variable inside namespace B?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
How to print the value of the i variable inside namespace B?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!