Q126
What will be the output of the following C++ code? #include #include #include using namespace std; int myfunction (int x, int y) return x + 2 * y; struct myclass int operator()(int x, int y) return x + 3 * y; myobject; int main () int init = 100; int numbers[] = 10, 20, 30; cout () ); cout << endl; return 0;
A.
40
AnswerB.
100
C.
140
D.
524
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board