Question
1.
#include
2.
#include
3.
using namespace std;
4.
int main()
5.
{
6.
complex i(2, 3);
7.
i = i * 6 / 3;
8.
cout
What is the output of this program?
1.
#include
2.
#include
3.
using namespace std;
4.
int main()
5.
{
6.
complex i(2, 3);
7.
i = i * 6 / 3;
8.
cout
Answer: Option A
Was this answer helpful ?
We are multiplying the complex number by 2.
Output:
$ g++ comp2.cpp
$ a.out
(4,6)
Was this answer helpful ?
More Questions on This Topic :
Question 5.
How to declare the complex number?
....
Submit Solution