I took a bit of code from this website(last code). BOO has been referred to a variable in GOO. But how do we refer a function? I have tried with no luck. It gives out random number.
#include<iostream>
 namespace Foo
{
namespace Goo
{
    int add(int a,int b){
        std::cout << a+b; 
    }
}
}
namespace Boo = Foo::Goo; 
int main()
{
std::cout << Boo::add(5,8); 
return 0;
}
 
    