1306
GB
What is the output: int a[]={1,2,3,4,5}; cout<<*(max_element(a,a+5)-1);
IN
आउटपुट क्या है: int a[]={1,2,3,4,5}; अदालत
A
4
4
B
5
5
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
max is at a+4=&a[4]. a+4-1=&a[3]=4. Output: 4.
व्याख्या (हिन्दी)
अधिकतम a+4=&a[4] पर है। a+4-1=&a[3]=4. आउटपुट: 4.