Home / MCQ Bank / Computer
Computer Functions And Procedures In C Plus Plus

What is the correct syntax of defining a namespace?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • namespace name{}

Related Computer Questions

In C#, which keyword is used to define a method that does not return a value? What is the purpose of the `? super T` wildcard in Java generics? Which of the following will run pig in local mode? What is used to perform an analysis of key values by the server? What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; class A { int a = 5; public: void change(int i){ a = i; } static void value_of_a(){ cout<<a; } }; int main(int argc, char const *argv[]) { A a1 = A(); a1.change(10); a1.value_of_a(); return 0; }