Vidyalelo
C++ Programming · Q242

C++ miscellaneous

Programming · C++ Programming · question 242

Q242

What will be the output of the following C++ code? #include #include #include using namespace std; int main () int first[] = 10, 40, 90; int second[] = 1, 2, 3; int results[5]; transform ( first, first + 5, second, results, divides ()); for (int i = 0; i < 3; i++) cout << results[i] << " "; return 0;

A.
10 20
B.
20 30
C.
10 20 30
Answer
D.
20 40

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board