766
GB
What is the output: int arr[]={10,20,30}; for(int &x:arr) x*=2; cout<
IN
आउटपुट क्या है: int arr[]={10,20,30}; for(int &x:arr) x*=2; अदालत
A
20
20
B
40
40
C
30
30
D
Error
गलती
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Range-based for with reference doubles each; arr[1]=20*2=40.
व्याख्या (हिन्दी)
संदर्भ के साथ रेंज-आधारित प्रत्येक को दोगुना कर देता है; गिरफ्तार[1]=20*2=40.