What Will Be The Output Of The Given C Codep Pre Langc #752

What will be the output of the given C++ code?</p> <pre><code class="language-c"> #include <bits/stdc++.h> using namespace std; int main() { int arr[] = {1,3,4,2,5}; int n = sizeof(arr)/sizeof(arr[0]); sort(arr, arr+n, greater<int>()); int a; for (a = 0; a < n; a++) cout << arr[a] << " "; return 0; } </code></pre>

Online Quiz This multiple choice question (MCQ) is related to the book/course gs gs122 Data Communication and Computer Network. It can also be found in gs gs122 Sorting - Introsort - Quiz No.2.


Similar question(s) are as followings:



Online Quizzes of gs122 Data Communication and Computer Network

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background