In this question output should be 5 as we are using "using namespace"..why it comes 10?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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