121
GB
What is the output: int a[]={5,4,3,2,1}; int b[5]; partial_sort_copy(a,a+5,b,b+5); cout<
IN
आउटपुट क्या है: int a[]={5,4,3,2,1}; पूर्णांक बी[5]; आंशिक_सॉर्ट_कॉपी(ए,ए+5,बी,बी+5); अदालत
A
15
15
B
51
51
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Sorted copy: 1,2,3,4,5. b[0]=1,b[4]=5. Output: 15.
व्याख्या (हिन्दी)
क्रमबद्ध प्रति: 1,2,3,4,5. बी[0]=1,बी[4]=5. आउटपुट: 15.