Home / MCQ Bank / Computer
Computer Functions And Procedures In C Plus Plus Difficulty: Medium

What will be the output of the following C++ code? #include <iostream> using namespace std; namespace first { int var = 5; } namespace second { double var = 3.1416; } int main () { int a; a = first::var + second::var; cout << a; return 0; }

Select the correct option to test your answer:

More Computer Questions

How can you efficiently implement a queue using two stacks? What happens when a stack overflows? Which of the following protocols works on a client server model? Which tag can set the background color for your page ? 1. <body> 2. <font> 3. <head> 4. <title> The job of the . . . . . . . . file is to store important metadata about your package.