My C++ Quiz

The ultimate place to learn C++!

Question #15: Which of the following functions are found when called in main during name lookup?

#include <iostream>

namespace standards
{
    struct datastructure
    {
    };

    void foo(const datastructure& ds)
    {
    }

    void bar()
    {
    }
}

int main(int argc, char** argv)
{
    standards::datastructure ds;

    foo(ds);

    bar();

    return 0;
}