0

In this question output should be 5 as we are using "using namespace"..why it comes 10??

https://code.sololearn.com/c60i3t3nTebp/?ref=app

18th Mar 2021, 3:08 PM
__n
__n - avatar
2 odpowiedzi
+ 1
This is not how you call a namespace It would be like namespace n1{ int x = 5; } int main(){ std::cout << n1::x; }
18th Mar 2021, 4:11 PM
Maher Al Dayekh
Maher Al Dayekh - avatar
0
Okay
19th Mar 2021, 7:08 AM
__n
__n - avatar