Select the correct option to test your answer:
More Computer Questions
What will be the output of the following C++ code? #include <iostream> using namespace std; class sample { public: sample() { cout << "X::X()" << endl; } sample( sample const & ) { cout << "X::X( X const & )" << endl; } sample& operator=( sample const & ) { cout << "X::operator=(X const &)" << endl; } }; sample f() { sample tmp; return tmp; } int main() { sample x = f(); return 0; }
Which of the following code opens a connection to the file foo.txt, reads from it, and closes the connection when its done?
What does 240 translate to in binary?
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; }
What will be the type of output of vector cross product?