121
GB
What is the output: for(int i=0; i<3; i++) cout << i << ' '; cout << i;
IN
आउटपुट क्या है: for(int i=0; i
A
0 1 2 3
0 1 2 3
B
0 1 2
0 1 2
C
Compile error
संकलन त्रुटि
D
0 1 2 2
0 1 2 2
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
i is scoped inside the for loop. Using i outside the loop is a compile error.
व्याख्या (हिन्दी)
i का दायरा for लूप के अंदर है। लूप के बाहर i का उपयोग करना एक संकलन त्रुटि है।