1906
GB
What is the output: template T arraySum(const T(&arr)[N]){T s=T{};for(auto x:arr)s+=x;return s;} int a[]={1,2,3,4,5}; cout<
IN
आउटपुट क्या है: टेम्पलेट T arraySum(const T(&arr)[N]){T s=T{};for(auto x:arr)s+=x;return s;} int a[]={1,2,3,4,5}; अदालत
A
15
15
B
5
5
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
N deduced=5. Sum=15. Output: 15.
व्याख्या (हिन्दी)
एन घटा=5. योग=15. आउटपुट: 15.