46
GB
What is the output: template T abs2(T x){return x<0?-x:x;} cout<
IN
आउटपुट क्या है: टेम्पलेट T abs2(T x){रिटर्न x
A
53.14
53.14
B
Compile error
संकलन त्रुटि
C
Undefined
अपरिभाषित
D
5 3
5 3
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
abs2(-5)=5, abs2(-3.14)=3.14. Output: 53.14.
व्याख्या (हिन्दी)
abs2(-5)=5, abs2(-3.14)=3.14. आउटपुट: 53.14.