Home / MCQ Bank / Computer
Computer Classes And Objects In C Plus Plus

What will be the output of the following C++ code? #include <iostream> #include <complex> using namespace std; int main () { complex<double> mycomplex (20.0, 2.0); cout << imag(mycomplex) << endl; return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • 2

Related Computer Questions

Which PowerPoint feature allows the user to create a simple presentation quickly _______ ? When typing in Preeti font all the Ukars turn to something else? What's the cause? Which search mode uses natural language search as a subroutine? What is the worst-case running time of unions done by size and path compression? Which of the following is not a HTML5 tag?