91
GB
What is the output: template T clamp2(T v,T lo,T hi){return max(lo,min(v,hi));} cout<
IN
आउटपुट क्या है: टेम्पलेट टी क्लैंप2(टी वी,टी लो,टी हाय){रिटर्न मैक्स(लो,मिन(वी,हाय));} कॉउट
A
100
100
B
15 0
15 0
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
clamp2(15,1,10)=10; clamp2(-5,0,5)=0. Output: 100.
व्याख्या (हिन्दी)
क्लैंप2(15,1,10)=10; क्लैंप2(-5,0,5)=0. आउटपुट: 100.